Closed ktsn closed 7 years ago
I noticed it would be more intuitive if the nearest non :global
ancestor is scoped (and the original proposal is like so). So the current behavior should be:
Input:
.foo :global .bar {
color: red;
}
Output:
.foo[data-v-xxx] .bar {
color: red;
}
Fix #23
This introduces
:global
pseudo class for scoped-style-loader. If css selector includes:global
, the selector no longer scoped.Input:
Output:
This syntax would be more convenient if we use css preprocessor like Sass.
Input:
Output: