Skip to content

[css-color-6] Does color-contrast() need to support three color contrast comparisons? #8457

@CharlesBelov

Description

@CharlesBelov
  • please be specific (in the title and issue) about what you want to change:

So far as I can tell, color-contrast() intends to support foreground versus background. However, for sites which hide link underlining or other link marking, the site would also need to support foreground versus link and background versus link. For example, foreground versus link for WCAG 2.0 AA needs to have 3:1 contrast and background versus link for WCAG 2.0 AA needs to have 4.5:1 contrast.

So, does color-contrast also need a syntax and means to support the three-way comparison of:

  • foreground versus background
  • foreground versus link
  • background versus link
    ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions