From 93c8ea795ea1ee747bc934ad5087a2c743b0c1dc Mon Sep 17 00:00:00 2001 From: moonira Date: Thu, 12 Mar 2026 15:15:24 +0100 Subject: [PATCH 1/2] Add argument grammar for env() function --- css-env-1/Overview.bs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/css-env-1/Overview.bs b/css-env-1/Overview.bs index 2d63b8b650ee..46341d78c261 100644 --- a/css-env-1/Overview.bs +++ b/css-env-1/Overview.bs @@ -291,6 +291,12 @@ use the ''env()'' function: env() = env( <> <>*, <>? ) +The ''env()'' function's [=argument grammar=] is: + +
+	<> = env( <>, <>? )
+
+ The ''env()'' function can be used in place of any part of a value in any property on any element, or any part of a value in any descriptor on any [=at-rule=], and in several other places where CSS values are allowed. From 5981b8f4a49c24a7015952cd27811e58cb86cac3 Mon Sep 17 00:00:00 2001 From: moonira Date: Thu, 12 Mar 2026 15:19:18 +0100 Subject: [PATCH 2/2] Add missing explanation --- css-env-1/Overview.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/css-env-1/Overview.bs b/css-env-1/Overview.bs index 46341d78c261..b0b9e172538f 100644 --- a/css-env-1/Overview.bs +++ b/css-env-1/Overview.bs @@ -297,6 +297,10 @@ The ''env()'' function's [=argument grammar=] is: <> = env( <>, <>? ) +Like ''var()'', a bare comma can be used with nothing following it, +indicating that the second <> was passed, +just as an empty sequence. + The ''env()'' function can be used in place of any part of a value in any property on any element, or any part of a value in any descriptor on any [=at-rule=], and in several other places where CSS values are allowed.