Skip to content

Commit d3c2b5c

Browse files
Anders Hartvoll Ruuddbaron
Anders Hartvoll Ruud
authored andcommitted
[css-conditional-3] Remove "unknown" value concept
The <general-enclosed> production now just produces "false". See Issue 6175.
1 parent 45b0b89 commit d3c2b5c

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

css-conditional-3/Overview.bs

+5-11
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ tied to the support for certain features, as is the case for use of new
238238
layout system features.
239239

240240
The syntax of the condition in the ''@supports'' rule
241-
is similar to that defined for <<media-condition>> in [[MEDIAQUERIES-4]]:
241+
is similar to that defined for <<media-condition>> in [[MEDIAQUERIES-4]],
242+
but without the "unknown" value logic:
242243

243244
* negation is needed so that
244245
the new-feature styles and the fallback styles
@@ -250,10 +251,6 @@ is similar to that defined for <<media-condition>> in [[MEDIAQUERIES-4]]:
250251
* disjunction (or) is needed
251252
when there are multiple alternative features for a set of styles,
252253
particularly when some of those alternatives are vendor-prefixed properties or values.
253-
* "unknown" values (neither true nor false) are needed
254-
to allow for future-compatibility,
255-
so new types of support queries can be added
256-
and treated sensibly in older UAs.
257254

258255
Therefore, the syntax of the ''@supports'' rule allows
259256
testing for property:value pairs, and arbitrary conjunctions (and),
@@ -297,27 +294,24 @@ as follows:
297294

298295
: not <<supports-in-parens>>
299296
:: The result is the negation of the <<supports-in-parens>> term.
300-
The negation of unknown is unknown.
301297

302298
: <<supports-in-parens>> [ and <<supports-in-parens>> ]*
303299
::
304300
The result is true if all of the <<supports-in-parens>> child terms are true,
305-
false if at least one of the <<supports-in-parens>> is false,
306-
and unknown otherwise.
301+
and false otherwise.
307302

308303
: <<supports-in-parens>> [ or <<supports-in-parens>> ]*
309304
::
310305
The result is false if all of the <<supports-in-parens>> child terms are false,
311-
true if at least one of the <<supports-in-parens>> is true,
312-
and unknown otherwise.
306+
and true otherwise.
313307

314308
: <<supports-decl>>
315309
::
316310
The result is true if the UA [=supports=] the declaration within the parentheses.
317311

318312
: <<general-enclosed>>
319313
::
320-
The result is unknown.
314+
The result is false.
321315

322316
Authors must not use <<general-enclosed>> in their stylesheets.
323317
<span class='note'>It exists only for future-compatibility,

0 commit comments

Comments
 (0)