Convert :open
to :popover-open
for popovers
#39222
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See [1]/[2] for more context, but there are cases where
:open
isambiguous 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 asa popover, which makes it match both
:open
and:closed
. It seemsthat really
:open
and:closed
should match elements that canopen 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 openstate, and it removes
:open
and:closed
support for popovers. It also converts all of the popover WPTs to use:popover-open
insteadof either
:open
or:closed
.[1] w3c/csswg-drafts#8637
[2] whatwg/html#9077
Bug: 1307772
Fixed: 1429670
Change-Id: I8d840512166ccdb5d5c8abbb7192bbce7177ee88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4373888
Reviewed-by: Joey Arhar <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1124869}