Skip to content

Commit

Permalink
add test for html { a_value: some-value; .foo { a_value: some-value; } }
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Aug 6, 2024
1 parent 55d9b43 commit 6cea2d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,12 @@ const tests = [
options: { mode: "pure" },
error: /is not pure/,
},
{
name: "throw on global styles with a local selector",
input: `html { a_value: some-value; .foo { a_value: some-value; } }`,
options: { mode: "pure" },
error: /is not pure/,
},
{
name: "css nesting",
input: `
Expand Down

0 comments on commit 6cea2d6

Please sign in to comment.