dequelabs / dequelabs/axe-core
Wrong measurement in target-size calculation on overlapping links with the same destination
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 29
Description
### Product
axe-core
### Product Version
4.8
### Latest Version
- [X] I have tested the issue with the latest version of the product
### Issue Description
If two or more targets are overlapping, the overlapping area should not be included in the measurement of the target size, except when the overlapping targets perform the same action or open the same page.
https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#dfn-target
#### Expectation
Not an error since both links have the same destination.
#### Actual
It is reported as an error.
#### How to Reproduce
Found in: https://www.landshypotek.se/
Search for “Så jobbar vi med hållbarhet”. That entire block is a link that covers the small “read more” link, so it’s not encompassing it but entirely covering it. And they have the same destination.
#### Additional context
@straker FYI on what we discussed on Slack.
Contributor guide
Assessment
This issue has not been assessed yet.