Skip to content

Commit 2eb1dd6

Browse files
committed
[css-values-5] Clarify that the per-element part of the random caching key must be obtained before inheritance.
1 parent bd20151 commit 2eb1dd6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-values-5/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,6 +2299,13 @@ Generating/Caching Random Values: the <<random-caching-options>> value</h3>
22992299
when invoked on different documents
23002300
(including refreshes of the same page).
23012301

2302+
This element-unique value must be obtained at [=computed value=] time,
2303+
<em>before</em> inheritance,
2304+
so that a random function which is unresolved by inheritance time
2305+
(due to containing, for example, a layout-sensitive percentage)
2306+
does not have a different behavior on children
2307+
from one that resolves immediately.
2308+
23022309
<div class=example>
23032310
For example, in the following stylesheet:
23042311

0 commit comments

Comments
 (0)