@@ -44,9 +44,10 @@ export default postcss.plugin('vue-scoped', (options: any) => (root: Root) => {
4444 }
4545
4646 if ( n . type === 'pseudo' ) {
47+ const { value } = n
4748 // deep: inject [id] attribute at the node before the ::v-deep
4849 // combinator.
49- if ( n . value === '::v-deep' ) {
50+ if ( value === ':deep' || value === '::v-deep' ) {
5051 if ( n . nodes . length ) {
5152 // .foo ::v-deep(.bar) -> .foo[xxxxxxx] .bar
5253 // replace the current node with ::v-deep's inner selector
@@ -81,7 +82,7 @@ export default postcss.plugin('vue-scoped', (options: any) => (root: Root) => {
8182 // slot: use selector inside `::v-slotted` and inject [id + '-s']
8283 // instead.
8384 // ::v-slotted(.foo) -> .foo[xxxxxxx-s]
84- if ( n . value === '::v-slotted' ) {
85+ if ( value === ':slotted' || value === '::v-slotted' ) {
8586 rewriteSelector ( n . nodes [ 0 ] as Selector , true /* slotted */ )
8687 selector . insertAfter ( n , n . nodes [ 0 ] )
8788 selector . removeChild ( n )
@@ -93,7 +94,7 @@ export default postcss.plugin('vue-scoped', (options: any) => (root: Root) => {
9394
9495 // global: replace with inner selector and do not inject [id].
9596 // ::v-global(.foo) -> .foo
96- if ( n . value === '::v-global' ) {
97+ if ( value === ':global' || n . value === '::v-global' ) {
9798 selectors . insertAfter ( selector , n . nodes [ 0 ] )
9899 selectors . removeChild ( selector )
99100 return false
0 commit comments