@@ -489,7 +489,7 @@ describe('SFC style preprocessors', () => {
}"
`)
expect(compileScoped(`.foo * { color: red; }`)).toMatchInlineSnapshot(`
- ".foo[data-v-test] * { color: red;
+ ".foo *[data-v-test] { color: red;
})
@@ -216,8 +216,12 @@ function rewriteSelector(
return false
}
- // .foo * -> .foo[xxxxxxx] *
- if (node) return
+ // .foo * -> .foo *[xxxxxxx]
+ if (node) {
+ node = n
+ shouldInject = true
+ return
+ }
if (