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

Update :active and :hover definitions #7465

Merged
merged 3 commits into from
Feb 10, 2022
Merged

Update :active and :hover definitions #7465

merged 3 commits into from
Feb 10, 2022

Commits on Jan 5, 2022

  1. Update :active definition to not consider disabledness

    This matches Gecko and WebKit. The disabled condition was added to the spec in 9985973 but not implemented uniformly. As discussed in #6635, it doesn't work very well and is inconsistent with other similar pseudo-classes, like :hover.
    
    This also removes the consideration of <link> elements with href="" attributes, since they no longer have activation behavior as of 1e0ee7f. And it updates the definitions of both :active and :hover to be based on the latest Selectors spec, which notably includes the ancestor condition over the flat tree at the CSS layer, instead of having HTML handle that.
    
    There remains some lack of interop around elements such as <input type=radio> which have activation behavior but are not on the list of elements for which "in a formal activation state" is considered. #6635 stays open to track that case.
    domenic committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    0923fc8 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Configuration menu
    Copy the full SHA
    2436ef9 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Same fix for :active

    domenic committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    4bc89f8 View commit details
    Browse the repository at this point in the history