Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show |cursor: pointer| on unclickable <area>s #17267

Merged
merged 1 commit into from Jun 12, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jun 11, 2019

The HTML spec says:
"The href attribute on a and area elements is not
required; when those elements do not have href
attributes they do not create hyperlinks."

Background:
Chrome already excludes unclickable <area>s, <area>s
without a href attribute, from the tab order.

Problem:
Unclickable <area>s still show a "click me" hint.

Solution:
Mimick Firefox. Only show the pointer for actual
<area> links.

Note:
Found during crrev.com/c/1632231. We don't want
unclickable <area>s to act navigable.

Bug: 972556
Change-Id: I9214171290659b8b800db3e462478e2a1327c832
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1653009
Commit-Queue: Hugo Holgersson <hholgersson@fb.com>
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#668409}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

The HTML spec says:
  "The href attribute on a and area elements is not
   required; when those elements do not have href
   attributes they do not create hyperlinks."

Background:
Chrome already excludes unclickable <area>s, <area>s
without a href attribute, from the tab order.

Problem:
Unclickable <area>s still show a "click me" hint.

Solution:
Mimick Firefox. Only show the pointer for actual
<area> links.

Note:
Found during crrev.com/c/1632231. We don't want
unclickable <area>s to act navigable.

Bug: 972556
Change-Id: I9214171290659b8b800db3e462478e2a1327c832
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1653009
Commit-Queue: Hugo Holgersson <hholgersson@fb.com>
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#668409}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants