Skip to content

Commit 148dda6

Browse files
committed
[css-values-5][editorial] Add an example of style() being cyclic.
1 parent c7235bb commit 148dda6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-values-5/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,12 @@ Conditional Value Selection: the ''if()'' notation</h3>
13901390
would be a [=cyclic substitution context=],
13911391
that query evaluates to false.
13921392

1393+
<div class=example>
1394+
For example, in ''--foo: if(style(--foo: bar): baz);''
1395+
the ''style()'' query is automatically false,
1396+
since [=property replacement=] has already established a &bs<<"property", "--foo"&bs>>; [=substitution context=].
1397+
</div>
1398+
13931399
If the result of |condition| is false,
13941400
[=iteration/continue=].
13951401

0 commit comments

Comments
 (0)