File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2806,6 +2806,12 @@ Sharing (Or Not) Random Values: the <<random-key>> value</h3>
28062806 <li> <dfn>element-scoped</dfn> adds an element-specific identifier
28072807 to the [=random cache name=] ,
28082808 so different elements will get different random values.
2809+
2810+ If the [=random function=] is being evaluated inside of a [=custom function=] ,
2811+ the element-specific identifier is for the "hypothetical element"
2812+ that the function's styles are evaluated on,
2813+ so ''element-scoped'' will give you different random values
2814+ on every function invocation.
28092815 <li> <dfn>property-scoped</dfn> adds the property name the [=random function=] is being used on
28102816 to the [=random cache name=] ,
28112817 so different properties will get different random values.
You can’t perform that action at this time.
0 commit comments