Skip to content

[selectors] :visited and ::backdrop #8240

Closed

Description

@Loirooriol

https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11114

<!DOCTYPE html>
<style>
dialog, dialog::backdrop {
  border: solid red;
}
:visited dialog, :visited dialog::backdrop {
  border-color: green;
}
</style>
<a href=""><dialog></dialog></a>
<script>
document.querySelector("dialog").showModal();
</script>

https://drafts.csswg.org/selectors-4/#visited-pseudo
https://fullscreen.spec.whatwg.org/#::backdrop-pseudo-element
https://drafts.csswg.org/css-position-4/#backdrop

I expected that both the dialog and the backdrop would have a green border.
However, the backdrop gets a red border in Gecko, Blink and WebKit.
Seems like a bug to me, but there is interoperability.

Activity

  1. added a commit that references this issue on Mar 30, 2023
  2. 111xiaolilili commented on Apr 21, 2023

    @111xiaolilili
  3. t2757341306 commented on Apr 21, 2023

    @t2757341306
  4. Loirooriol commented on Nov 6, 2023

    @Loirooriol
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions