Skip to content

Commit f522fff

Browse files
committed
Test parentheses inside :global(), closes #2
1 parent 7a4446f commit f522fff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ var tests = [
5959
input: '.foo :global .foo .bar {}',
6060
expected: ':local(.foo) .foo .bar {}'
6161
},
62+
{
63+
should: 'allow parentheses inside narrow global selectors',
64+
input: '.foo :global(.foo:not(.bar)) {}',
65+
expected: ':local(.foo) .foo:not(.bar) {}'
66+
},
6267
{
6368
should: 'allow narrow global selectors appended to local styles',
6469
input: '.foo:global(.foo.bar) {}',

0 commit comments

Comments
 (0)