You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A property value is computationally independent if it can be converted into a computed value using only the value of the property on the element, and "global" information that cannot be changed by CSS.
By that definition, colors that are color-scheme dependent are not computationally independent, so they should not be allowed as custom property initial values. I have added test coverage for this in the linked patch.
Test List
The additions are in https://phabricator.services.mozilla.com/D226869.
Rationale
Both
light-dark()
and system colors are color-scheme dependent.From the spec:
By that definition, colors that are color-scheme dependent are not computationally independent, so they should not be allowed as custom property initial values. I have added test coverage for this in the linked patch.
@dshin-moz has filed bugs for this:
cc @nt1m, @andruud, @emilio
The text was updated successfully, but these errors were encountered: