dequelabs / dequelabs/axe-core

Ensure that `AREA` used by `IMG` is visible.

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

Description

**Expectation:**
The function `isAreaVisible` used within `isVisible` should consider if `AREA` elements are outside of view/ coordinates of the `IMG` that uses the `AREA`.

**Actual:**
Currently the function `isAreaVisible` does not consider if referenced `AREA` is in view of the `IMG` that uses it.

**Motivation:**
If the coordinates sets an `AREA` that's bigger than the `IMG` it's mapped on, the `AREA` element will be visible to assistive technologies, but not to sighted users.

> Note: `isAreaVisible` is an enhancement to `isVisible` function as a part of of the rule `identical-links-same-purpose`. See PR & comment - https://github.com/dequelabs/axe-core/pull/1649#discussion_r335436527

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.