Bug
1824795 [wpt PR 39222] - Convert `:open` to `:popover-open` for popovers, a=testonly
Automatic update from web-platform-tests
Convert `:open` to `:popover-open` for popovers
See [1]/[2] for more context, but there are cases where `:open` is
ambiguous for popovers. If multiple elements support `:open/:closed`,
and [popover] can be applied to any of them, there are situations
where an element is both open and closed. For example,
`<details popover>` can be closed as a details element and open as
a popover, which makes it match both `:open` and `:closed`. It seems
that really `:open` and `:closed` should match *elements* that can
open and close, and not things that can be made to open or close
via an attribute or other mechanism such as JS.
This CL adds `:popover-open` which only applies to popovers in the open
state, and it removes `:open` and `:closed` support for popovers. It also converts all of the popover WPTs to use `:popover-open` instead
of either `:open` or `:closed`.
[1] https://github.com/w3c/csswg-drafts/issues/8637
[2] https://github.com/whatwg/html/pull/9077
Bug:
1307772
Fixed:
1429670
Change-Id: I8d840512166ccdb5d5c8abbb7192bbce7177ee88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
4373888
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1124869}
--
wpt-commits:
e68cb913b7cd3002609729bd2bde85b24ecaff39
wpt-pr: 39222