Skip to content

Colour contrast checking ignores content being clipped by overflow:hidden #3442

@Shepard

Description

@Shepard

Product: axe-core and axe Extension

Fiddle for reproducing this: https://jsfiddle.net/Loe7pacx/

Expectation: Limit contrast checking of content that is cut off by overflow:hidden only to the visible part. No issue is reported by axe as this is black text on a white background. The black background of the outer element (body) should not matter.

Actual: Axe reports an issue on the span element. Contrast is checked as if the content visibly extended into an area with a different background colour.

Motivation: This was not reported in previous versions and visually there is no contrast issue for the user.


axe-core version: 4.4.1
extension version: 4.25.3

Browser and Assistive Technology versions
Chrome 100

For Tooling issues:
- Platform:  Windows

Metadata

Metadata

Assignees

Labels

color contrastColor contrast issuesfixBug fixesprA pr has been created for the issuerulesIssue or false result from an axe-core rule

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions