Skip to content

Commit 7ae9123

Browse files
andruudAnders Hartvoll Ruud
andauthored
[css-variables-1] Custom props that are IACVT become guaranteed-invalid (w3c#6006)
Co-authored-by: Anders Hartvoll Ruud <andruud@google.com>
1 parent d7b7f4b commit 7ae9123

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

css-variables-1/Overview.bs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ Resolving Dependency Cycles</h3>
308308

309309
If there is a cycle in the dependency graph,
310310
all the <a>custom properties</a> in the cycle
311-
are <dfn export>cyclic at computed-value time</dfn>,
312-
and must compute to the [=guaranteed-invalid value=].
311+
are [=invalid at computed-value time=].
313312

314313
Note: Defined properties that participate in a dependency cycle
315314
either end up with invalid variables in their value
@@ -345,7 +344,7 @@ Resolving Dependency Cycles</h3>
345344
}
346345
</pre>
347346

348-
Both '--one' and '--two' are now [=cyclic at computed-value time=],
347+
Both '--one' and '--two' are now [=invalid at computed-value time=],
349348
and compute to the [=guaranteed-invalid value=]
350349
rather than lengths.
351350
</div>
@@ -598,11 +597,23 @@ Invalid Variables</h3>
598597
after substituting its ''var()'' functions,
599598
is invalid.
600599
When this happens,
601-
the computed value of the property is either
602-
the property's inherited value
603-
or its initial value
604-
depending on whether the property is inherited or not, respectively,
605-
as if the property's value had been specified as the ''unset'' keyword.
600+
the computed value is one of the following
601+
depending on the property's type:
602+
603+
<dl class="switch">
604+
605+
: The property is a non-registered [=custom property=]
606+
: The property is a [=registered custom property=]
607+
with [=univerisal syntax definition|universal syntax=]
608+
:: The computed value is the <a>guaranteed-invalid value</a>.
609+
610+
: Otherwise
611+
:: Either the property's inherited value
612+
or its initial value
613+
depending on whether the property is inherited or not, respectively,
614+
as if the property's value had been specified as the ''unset'' keyword.
615+
616+
</dl>
606617

607618
<div class='example'>
608619
For example, in the following code:

0 commit comments

Comments
 (0)