".baz .qux[data-v-test] .foo .bar { color: red;
}"
`)
+ expect(compileScoped(`:is(.foo :deep(.bar)) { color: red; }`))
+ .toMatchInlineSnapshot(`
+ ":is(.foo[data-v-test] .bar) { color: red;
+ }"
+ `)
+ expect(compileScoped(`:where(.foo :deep(.bar)) { color: red; }`))
+ .toMatchInlineSnapshot(`
+ ":where(.foo[data-v-test] .bar) { color: red;
+ }"
+ `)
})
test('::v-slotted', () => {
if (n.type !== 'pseudo' && n.type !== 'combinator') {
node = n
}
+
+ if (n.type === 'pseudo' && (n.value === ':is' || n.value === ':where')) {
+ rewriteSelector(id, n.nodes[0], selectorRoot, slotted)
+ shouldInject = false
+ }
})
if (node) {