dequelabs / dequelabs/axe-core

axe-core inconsistently raises link-in-text-block depending on viewport size

Open
#3,904 1 comment 0 reactions 0 assignees View on GitHub
fix
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### Product

axe-core

### Product Version

4.6.3

### Latest Version

- [X] I have tested the issue with the latest version of the product

### Issue Description

#### Expectation
Consistently raise `link-in-text-block`.

#### Actual
Raises `link-in-text-block` at some viewport sizes by not others.

#### How to Reproduce
Here is a minimal example to use: https://codepen.io/thuey/full/MWBdgWY

Large viewport:
1. Set the viewport to 900x900
2. Run axe-core
3. Violations include `link-in-text-block`

Small viewport:
1. Set the viewport to 500x500.
2. Run axe-core
3. Violations do not include `link-in-text-block`

#### Additional context
It seems to only happen when the link is contained within a ``, which is in turn contained within a `

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.