Skip to content

Commit

Permalink
[css-values-5] Clarify that the per-element part of the random cachin…
Browse files Browse the repository at this point in the history
…g key must be obtained before inheritance.
  • Loading branch information
tabatkins committed Feb 14, 2025
1 parent bd20151 commit 2eb1dd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions css-values-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,13 @@ Generating/Caching Random Values: the <<random-caching-options>> value</h3>
when invoked on different documents
(including refreshes of the same page).

This element-unique value must be obtained at [=computed value=] time,
<em>before</em> inheritance,
so that a random function which is unresolved by inheritance time
(due to containing, for example, a layout-sensitive percentage)
does not have a different behavior on children
from one that resolves immediately.

<div class=example>
For example, in the following stylesheet:

Expand Down

0 comments on commit 2eb1dd6

Please sign in to comment.