@@ -114,18 +114,15 @@ Extensions to the ''@supports'' rule</h2>
114114 This level of the specification extends the <<supports-feature>> syntax as follows:
115115
116116 <pre class="prod def" nohighlight>
117- <dfn><supports-feature></dfn> = <<supports-selector-fn>> | <<supports-font-tech-fn>>
118- | <<supports-font-format-fn>> | <<supports-decl>>
117+ <dfn><supports-feature></dfn> = <<supports-selector-fn>>
118+ | <<supports-font-tech-fn>> | <<supports-font-format-fn>>
119+ | <<supports-at-rule-fn>>
120+ | <<supports-decl>>
119121 <dfn><supports-font-tech-fn></dfn> = font-tech( <<font-tech>> )
120122 <dfn><supports-font-format-fn></dfn> = font-format( <<font-format>> )
123+ <dfn><supports-at-rule-fn></dfn> = at-rule( <<at-keyword-token>> )
121124 </pre>
122125
123- <wpt>
124- at-supports-font-format-001.html
125- at-supports-font-tech-001.html
126- js/CSS-supports-L5.html
127- </wpt>
128-
129126 : <<supports-font-tech-fn>>
130127 ::
131128 The result is true if the UA
@@ -138,9 +135,24 @@ Extensions to the ''@supports'' rule</h2>
138135 <a href="#dfn-support-font-format">supports the font format</a>
139136 provided as an argument to the function.
140137
138+ : <<supports-at-rule-fn>>
139+ ::
140+ The result is true if the UA
141+ <a href="#dfn-support-at-rule">supports the at-rule</a>
142+ provided as an argument to the function.
143+
141144<h3 id="support-definition-ext">
142145Extensions to the definition of support</h3>
143146
147+ <h4 id="support-definition-ext-fonts">
148+ Font techs and formats</h4>
149+
150+ <wpt>
151+ at-supports-font-format-001.html
152+ at-supports-font-tech-001.html
153+ js/CSS-supports-L5.html
154+ </wpt>
155+
144156 A CSS processor is considered to
145157 <dfn export for=CSS id="dfn-support-font-tech">support a font tech</dfn>
146158 when it is capable of utilizing the specified [[css-fonts-4#font-tech-definitions]]
@@ -152,6 +164,21 @@ Extensions to the definition of support</h3>
152164 in layout and rendering,
153165 and this format is not specified as a <<string>> .
154166
167+ <h4 id="support-definition-at-rules">
168+ At-rules</h4>
169+
170+ <wpt>
171+ js/supports-at-rule.html
172+ </wpt>
173+
174+ A CSS processor is considered to
175+ <dfn export for=CSS id="dfn-support-at-rule">support an at-rule</dfn>
176+ if it would accept an [=at-rule=] beginning with the specified at-keyword
177+ within any context.
178+
179+ Note: Because ''@charset'' is not a valid [=at-rule=] ,
180+ it is not considered to be supported under this definition.
181+
155182<h2 id="when-rule">
156183Generalized Conditional Rules: the ''@when'' rule</h2>
157184
@@ -1812,6 +1839,14 @@ Changes since the <a href="https://www.w3.org/TR/2024/WD-css-conditional-5-20241
18121839 Dimensional query containers no longer apply layout containment
18131840 (<a href="https://github.com/w3c/csswg-drafts/pull/10544">#10544</a> )
18141841 </li>
1842+ <li>
1843+ Extended [=supports queries=] to express [=at-rule=] capabilities
1844+ via ''at-rule()'' .
1845+ (<a href="https://github.com/w3c/csswg-drafts/issues/2463">#2463</a> ,
1846+ <a href="https://github.com/w3c/csswg-drafts/issues/6966">#6966</a> ,
1847+ <a href="https://github.com/w3c/csswg-drafts/issues/11116">#11116</a> ,
1848+ <a href="https://github.com/w3c/csswg-drafts/issues/11117">#11117</a> )
1849+ </li>
18151850</ul>
18161851
18171852<h3 id="changes-20240723" class="no-num">
@@ -1849,6 +1884,8 @@ Additions since Level 4</h3>
18491884 <li> Added ''@when'' and ''@else'' .
18501885 <li> Extended [=supports queries=] to express font capabilities
18511886 via ''font-tech()'' and ''font-format()'' .
1887+ <li> Extended [=supports queries=] to express at-rule capabilities
1888+ via ''at-rule()'' .
18521889 <li> Moved Container Queries from [[CSS-CONTAIN-3]] to this specification.
18531890 (See also the [[CSS-CONTAIN-3#changes]] for more information
18541891 on the evolution of this feature.)
0 commit comments