Skip to content

Correct axe-core luminance number #4933

@WilcoFiers

Description

@WilcoFiers

Axe-core uses 0.03928 for its luminance calculation. This number came from WCAG, however WCAG's number was wrong. This was corrected a while back to be 0.04045. The change is theoretical, the difference is so small that the contrast ratio won't change. But it would be good to use update axe to use the same number that's in WCAG 2.2.

This change needs to happen in lib/commons/color/get-contrast.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreIssues in the core code (lib/core)fixBug fixesgood first issueFor first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions