Skip to content

Commit 754a92c

Browse files
committed
Add star selector scope test
1 parent e4c1a0d commit 754a92c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

test/fixtures/star-selector-scope.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* {
2+
--test: #0f0;
3+
}
4+
5+
.foo {
6+
background: var(--test);
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.foo {
2+
background: #0f0;
3+
}

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ describe('postcss-css-variables', function() {
6161
return testPlugin('./test/fixtures/comma-separated-selector-use-proper-scope.css', './test/fixtures/comma-separated-selector-use-proper-scope.expected.css');
6262
});
6363

64+
it('should work with star selector', function() {
65+
return testPlugin('./test/fixtures/star-selector-scope.css', './test/fixtures/star-selector-scope.expected.css');
66+
});
67+
6468
describe('with at-rules', function() {
6569
it('should add rule declaration of property in @media', function() {
6670
return testPlugin('./test/fixtures/media-query.css', './test/fixtures/media-query.expected.css');

0 commit comments

Comments
 (0)