diff --git a/test/index.test.js b/test/index.test.js index 430f913..9fff84c 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -886,6 +886,13 @@ 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; } }`, + expected: `html { a_value: some-value; :local(.foo) { a_value: some-value; } }`, + options: { mode: "pure" }, + error: /is not pure/, + }, { name: "css nesting", input: `