ref selectors

pull/7738/head
Rich Harris 8 years ago
parent 4f7c67db13
commit 39dc0b9c7d

@ -178,7 +178,7 @@ function applySelector(blocks: Block[], node: Node, stack: Node[], toEncapsulate
}
else if (selector.type === 'RefSelector') {
if (node.attributes.some((attr: Node) => attr.type === 'Ref' && attr.name === selector.name)) {
if (node.ref === selector.name) {
node._cssRefAttribute = selector.name;
toEncapsulate.push({ node, block });
return true;

Loading…
Cancel
Save