ref selectors

pull/1367/head
Rich Harris 7 years ago
parent 5722a51d17
commit 1d7366d107

@ -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