Skip to content

a:hover doesn't catch hovers of <label> element inside <a> #9705

Closed

Description

@sp3d

The following (fairly simple) web page differs in behavior in Servo vs. all the other browsers I tried:

<style>
a:hover {
    color: red;
}
</style>
<a href="data:,">link with <label>(label)</label> inside</a>
<p>hovering "(label)" reds link in Gecko and WebKit but not Servo</p>

Specifically, hovering any part of the link turns it red in Gecko and WebKit, while in Servo hovering the outer parts of the link turn it red, but hovering the text "(label)" leaves the link blue.

Activity

  1. emilio commented on Feb 20, 2016

    @emilio
    Member

    Thanks for reporting this!

    It seems that the hover state isn't propagated to the parent elements.

    I'm giving this a shot, even though I'm not know the code involved in that very well.

  2. self-assigned this
    on Feb 20, 2016
  3. added
    A-content/dom
    C-assigned
    on Feb 20, 2016
  4. added a commit that references this issue on Feb 20, 2016
  5. added a commit that references this issue on Feb 24, 2016
  6. added a commit that references this issue on Feb 24, 2016
  7. added a commit that references this issue on Mar 3, 2016
  8. added a commit that references this issue on Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/domC-assigned

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions