Skip to content

[selectors] :visited and ::backdrop #8240

@Loirooriol

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions