Skip to content

[css-color-5] Clarification on parsing behavior of color-mix(red 0%, blue 0%) #13996

@weinig

Description

@weinig

The WPT test, https://github.com/web-platform-tests/wpt/blob/39c4da44b6/css/css-color/parsing/color-invalid-color-mix-function.html, currently requires that a color-mix() function with all 0% percentages, like color-mix(red 0%, blue 0%) is invalid and should fail to parse.

I believe this is because prior versions of the spec included the text "If the percentages sum to zero, the function is invalid".

I don't think the current version of the spec has any such requirement, but I wanted to double check first before removing those tests.

cc @svgeesus

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions