Skip to content

Commit 9befc8c

Browse files
committed
add test for html { a_value: some-value; .foo { a_value: some-value; } }
1 parent 55d9b43 commit 9befc8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/index.test.js

+7
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,13 @@ const tests = [
886886
options: { mode: "pure" },
887887
error: /is not pure/,
888888
},
889+
{
890+
name: "throw on global styles with a local selector",
891+
input: `html { a_value: some-value; .foo { a_value: some-value; } }`,
892+
expected: `html { a_value: some-value; :local(.foo) { a_value: some-value; } }`,
893+
options: { mode: "pure" },
894+
error: /is not pure/,
895+
},
889896
{
890897
name: "css nesting",
891898
input: `

0 commit comments

Comments
 (0)