From a2a75de3b478115b100234458109ec5637fa4b4f Mon Sep 17 00:00:00 2001
From: Bramus
Date: Wed, 18 Mar 2026 14:50:25 +0100
Subject: [PATCH] [css-conditional-5] Add env() for use with @supports
---
css-conditional-5/Overview.bs | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/css-conditional-5/Overview.bs b/css-conditional-5/Overview.bs
index 10fd5bd0997d..dc238b67c287 100644
--- a/css-conditional-5/Overview.bs
+++ b/css-conditional-5/Overview.bs
@@ -118,12 +118,13 @@ Extensions to the ''@supports'' rule
<supports-feature> = <>
| <> | <>
| <> | <>
- | <>
+ | <> | <>
<supports-decl> = ( [ <> | <> ] )
<supports-font-tech-fn> = font-tech( <> )
<supports-font-format-fn> = font-format( <> )
<supports-at-rule-fn> = at-rule( <> )
<supports-named-feature-fn> = named-feature( <> )
+ <supports-env-fn> = env( <> )
: <>
@@ -156,6 +157,12 @@ Extensions to the ''@supports'' rule
The result is true if the UA
supports the named feature
provided as an argument to the function.
+
+ : <>
+ ::
+ The result is true if the UA
+ supports the environment variable
+ provided as an argument to the function.
Extensions to the definition of support
@@ -217,6 +224,13 @@ Named conditions
support a named condition
when the related [=named supports condition=] returns true.
+
+Environment variables
+
+ A CSS processor is considered to
+ support an environment variable
+ if the <> is a supported [=environment variable=].
+
Generalized Conditional Rules: the ''@when'' rule
@@ -2045,6 +2059,11 @@ Changes since the #3576)
+
Clarified that the last @supports-condition in document order wins
(#12973)