@@ -118,12 +118,13 @@ Extensions to the ''@supports'' rule</h2>
118118 <dfn><supports-feature></dfn> = <<supports-selector-fn>>
119119 | <<supports-font-tech-fn>> | <<supports-font-format-fn>>
120120 | <<supports-at-rule-fn>> | <<supports-named-feature-fn>>
121- | <<supports-decl>>
121+ | <<supports-env-fn>> | <<supports- decl>>
122122 <dfn><supports-decl></dfn> = ( [ <<declaration>> | <<supports-condition-name>> ] )
123123 <dfn><supports-font-tech-fn></dfn> = font-tech( <<font-tech>> )
124124 <dfn><supports-font-format-fn></dfn> = font-format( <<font-format>> )
125125 <dfn><supports-at-rule-fn></dfn> = at-rule( <<at-keyword-token>> )
126126 <dfn><supports-named-feature-fn></dfn> = named-feature( <<ident>> )
127+ <dfn function lt="env()" for="@supports"><supports-env-fn></dfn> = env( <<ident>> )
127128 </pre>
128129
129130 : <<supports-condition-name>>
@@ -156,6 +157,12 @@ Extensions to the ''@supports'' rule</h2>
156157 The result is true if the UA
157158 <a href="#dfn-support-named-feature">supports the named feature</a>
158159 provided as an argument to the function.
160+
161+ : <<supports-env-fn>>
162+ ::
163+ The result is true if the UA
164+ <a href="#dfn-support-env">supports the environment variable</a>
165+ provided as an argument to the function.
159166
160167<h3 id="support-definition-ext">
161168Extensions to the definition of support</h3>
@@ -217,6 +224,13 @@ Named conditions</h4>
217224 <dfn export for=CSS id="dfn-supports-condition-name">support a named condition</dfn>
218225 when the related [=named supports condition=] returns true.
219226
227+ <h4 id="support-definition-env">
228+ Environment variables</h4>
229+
230+ A CSS processor is considered to
231+ <dfn export for=CSS id="dfn-support-env">support an environment variable</dfn>
232+ if the <<ident>> is a supported [=environment variable=] .
233+
220234<h2 id="when-rule">
221235Generalized Conditional Rules: the ''@when'' rule</h2>
222236
@@ -2061,6 +2075,11 @@ Changes since the <a href="https://www.w3.org/TR/2024/WD-css-conditional-5-20241
20612075
20622076<ul>
20632077 <!-- to 21 October -->
2078+ <li>
2079+ Extended [=supports queries=] to express [=environment variable=] capabilities
2080+ via ''@supports/env()'' .
2081+ (<a href="https://github.com/w3c/csswg-drafts/issues/3576">#3576</a> )
2082+ </li>
20642083 <li> Clarified that the last @supports-condition in document order wins
20652084 (<a href="https://github.com/w3c/csswg-drafts/issues/12973">#12973</a> )
20662085 </li>
0 commit comments