Skip to content

Commit 3cca7d5

Browse files
committed
[css-conditional-5][editorial] Fix markup for env(), and reflect similar fixes to the other condition functions.
1 parent b4582b8 commit 3cca7d5

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

css-conditional-5/Overview.bs

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -124,45 +124,47 @@ Extensions to the ''@supports'' rule</h2>
124124
<dfn>&lt;supports-font-format-fn></dfn> = font-format( <<font-format>> )
125125
<dfn>&lt;supports-at-rule-fn></dfn> = at-rule( <<at-keyword-token>> )
126126
<dfn>&lt;supports-named-feature-fn></dfn> = named-feature( <<ident>> )
127-
<dfn function lt="env()" for="@supports">&lt;supports-env-fn></dfn> = env( <<ident>> )
127+
<dfn>&lt;supports-env-fn></dfn> = env( <<ident>> )
128128
</pre>
129129

130-
: <<supports-condition-name>>
131-
::
132-
The result is true if the UA
133-
<a href="#dfn-supports-condition-name">supports the named condition</a>.
134-
If the name is not recognized,
135-
the result is false.
136-
137-
: <<supports-font-tech-fn>>
138-
::
139-
The result is true if the UA
140-
<a href="#dfn-support-font-tech">supports the font tech</a>
141-
provided as an argument to the function.
142-
143-
: <<supports-font-format-fn>>
144-
::
145-
The result is true if the UA
146-
<a href="#dfn-support-font-format">supports the font format</a>
147-
provided as an argument to the function.
148-
149-
: <<supports-at-rule-fn>>
150-
::
151-
The result is true if the UA
152-
<a href="#dfn-support-at-rule">supports the at-rule</a>
153-
provided as an argument to the function.
154-
155-
: <<supports-named-feature-fn>>
156-
::
157-
The result is true if the UA
158-
<a href="#dfn-support-named-feature">supports the named feature</a>
159-
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.
130+
<dl dfn-type=function dfn-for="@supports">
131+
: <<supports-condition-name>>
132+
::
133+
The result is true if the UA
134+
<a href="#dfn-supports-condition-name">supports the named condition</a>.
135+
If the name is not recognized,
136+
the result is false.
137+
138+
: <dfn>font-tech( <<font-tech>> )</dfn>
139+
::
140+
The result is true if the UA
141+
[=supports the font tech=]
142+
provided as an argument to the function.
143+
144+
: <dfn>font-format( <<font-format>> )</dfn>
145+
::
146+
The result is true if the UA
147+
[=supports the font format=]
148+
provided as an argument to the function.
149+
150+
: <dfn>at-rule( <<at-keyword-token>> )</dfn>
151+
::
152+
The result is true if the UA
153+
[=supports the at-rule=]
154+
provided as an argument to the function.
155+
156+
: <dfn>named-feature( <<ident>> )</dfn>
157+
::
158+
The result is true if the UA
159+
[=supports the named feature=]
160+
provided as an argument to the function.
161+
162+
: <dfn>env( <<ident>> )</dfn>
163+
::
164+
The result is true if the UA
165+
[=supports the environment variable=]
166+
provided as an argument to the function.
167+
</dl>
166168

167169
<h3 id="support-definition-ext">
168170
Extensions to the definition of support</h3>
@@ -175,12 +177,12 @@ Font techs and formats</h4>
175177
</wpt>
176178

177179
A CSS processor is considered to
178-
<dfn export for=CSS id="dfn-support-font-tech">support a font tech</dfn>
180+
<dfn export for=CSS id="dfn-support-font-tech" lt="support a font tech|support the font tech">support a font tech</dfn>
179181
when it is capable of utilizing the specified [[css-fonts-4#font-tech-definitions]]
180182
in layout and rendering.
181183

182184
A CSS processor is considered to
183-
<dfn export for=CSS id="dfn-support-font-format">support a font format</dfn>
185+
<dfn export for=CSS id="dfn-support-font-format" lt="support a font format|support the font format">support a font format</dfn>
184186
when it is capable of utilizing the specified [[css-fonts-4#font-format-definitions]]
185187
in layout and rendering,
186188
and this format is not specified as a <<string>>.
@@ -193,7 +195,7 @@ At-rules</h4>
193195
</wpt>
194196

195197
A CSS processor is considered to
196-
<dfn export for=CSS id="dfn-support-at-rule">support an at-rule</dfn>
198+
<dfn export for=CSS id="dfn-support-at-rule" lt="support an at-rule | support the at-rule">support an at-rule</dfn>
197199
if it would accept an [=at-rule=] beginning with the specified at-keyword
198200
within any context.
199201

@@ -204,7 +206,7 @@ At-rules</h4>
204206
Named features</h4>
205207

206208
A CSS processor is considered to
207-
<dfn export for=CSS id="dfn-support-named-feature">support an named feature</dfn>
209+
<dfn export for=CSS id="dfn-support-named-feature" lt="support a named feature|support the named feature">support an named feature</dfn>
208210
if it supports the named feature based on the feature definition
209211
described in the following list:
210212

@@ -221,14 +223,14 @@ Named features</h4>
221223
Named conditions</h4>
222224

223225
A CSS processor is considered to
224-
<dfn export for=CSS id="dfn-supports-condition-name">support a named condition</dfn>
226+
<dfn export for=CSS id="dfn-supports-condition-name" lt="support a named condition|support the named condition">support a named condition</dfn>
225227
when the related [=named supports condition=] returns true.
226228

227229
<h4 id="support-definition-env">
228230
Environment variables</h4>
229231

230232
A CSS processor is considered to
231-
<dfn export for=CSS id="dfn-support-env">support an environment variable</dfn>
233+
<dfn export for=CSS id="dfn-support-env" lt="support an environment variable|support the environment variable">support an environment variable</dfn>
232234
if the <<ident>> is a supported [=environment variable=].
233235

234236
<h2 id="when-rule">

0 commit comments

Comments
 (0)