Skip to content

Test change proposal: mark light-dark() and system colors as not computationally independent #903

Open
@zrhoffman

Description

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:

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.

@dshin-moz has filed bugs for this:

cc @nt1m, @andruud, @emilio

Metadata

Assignees

No one assigned

    Labels

    test-change-proposalProposal to add or remove tests for an interop area

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions