From 577efb2ab18d7f65a0d9f775db85cd8cda5f6903 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Thu, 28 Oct 2021 08:40:16 +0200 Subject: [PATCH 1/2] Updating values parser --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 965321a..e9f00d1 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "node": ">=12" }, "dependencies": { - "postcss-values-parser": "6.0.0" + "postcss-values-parser": "6.0.1" }, "peerDependencies": { "postcss": "^8.3" From a253f27c0bc7de66eea3a0e4520bfa12db96d284 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Thu, 28 Oct 2021 08:40:34 +0200 Subject: [PATCH 2/2] Adding test cases --- test/basic.css | 6 ++++++ test/basic.expect.css | 6 ++++++ test/basic.import-is-empty.expect.css | 6 ++++++ test/basic.import.expect.css | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/test/basic.css b/test/basic.css index 5199c9f..e044c62 100644 --- a/test/basic.css +++ b/test/basic.css @@ -8,3 +8,9 @@ body { order: 2; } } + +@media (width > env(--another-custom-width)) { + body { + order: 3; + } +} diff --git a/test/basic.expect.css b/test/basic.expect.css index 5199c9f..e044c62 100644 --- a/test/basic.expect.css +++ b/test/basic.expect.css @@ -8,3 +8,9 @@ body { order: 2; } } + +@media (width > env(--another-custom-width)) { + body { + order: 3; + } +} diff --git a/test/basic.import-is-empty.expect.css b/test/basic.import-is-empty.expect.css index 5199c9f..e044c62 100644 --- a/test/basic.import-is-empty.expect.css +++ b/test/basic.import-is-empty.expect.css @@ -8,3 +8,9 @@ body { order: 2; } } + +@media (width > env(--another-custom-width)) { + body { + order: 3; + } +} diff --git a/test/basic.import.expect.css b/test/basic.import.expect.css index 762c0d0..9491cec 100644 --- a/test/basic.import.expect.css +++ b/test/basic.import.expect.css @@ -8,3 +8,9 @@ body { order: 2; } } + +@media (width > 600px) { + body { + order: 3; + } +}