Skip to content

Axe fails parsing (OK)LAB & (OK)LCH colors containing 'none' keyword #4269

@BenjaminAster

Description

@BenjaminAster

The CSS color functions lab(), oklab(), lch() and oklch() can contain the special none keyword as a "missing color component" which is treated special when interpolating colors, while simply treated as 0 otherwise (see specification). Axe fails parsing such colors.

color: oklch(0 none none);
color: lch(none 0 none);
color: oklab(0 none none);
color: lab(0 none none);

Metadata

Metadata

Assignees

No one assigned

    Labels

    color contrastColor contrast issuescoreIssues in the core code (lib/core)highHigh priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions