Skip to content

Commit c7235bb

Browse files
committed
[css-values-5] Specify that style queries in if() introduce a dependency. #11500
1 parent 00a3be1 commit c7235bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

css-values-5/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,13 @@ Conditional Value Selection: the ''if()'' notation</h3>
13841384
otherwise, let the result be |condition|.
13851385

13861386
2. Evaluate |condition|.
1387-
If the result is false,
1387+
1388+
If a <<style-query>> in |condition| tests the value of a property,
1389+
and a &bs<<;"property", referenced-property-name&bs>>; [=substitution context=]
1390+
would be a [=cyclic substitution context=],
1391+
that query evaluates to false.
1392+
1393+
If the result of |condition| is false,
13881394
[=iteration/continue=].
13891395

13901396
3. [=Substitute arbitrary substitution functions=] in the second <<declaration-value>> of |branch|,

0 commit comments

Comments
 (0)