#4224·axe-core

Wrong measurement in target-size calculation on overlapping links with the same destination

Author: umut-gultekinCreated Oct 31, 2023Updated Oct 1, 2026
Labelsfixrulestarget-size

Product

axe-core

Product Version

4.8

Latest Version

  • 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.