forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1818807 [wpt PR 38701] - Change popover invoking attributes, a=te…
…stonly Automatic update from web-platform-tests Change popover invoking attributes See [1] for discussion. This changes the Popover invoking attribute behavior. Previously, three attributes were used to set the invoking relationship and behavior: - popovertoggletarget - popovershowtarget - popoverhidetarget Those each could point to an idref for a popover, and the behavior would be controlled by which attribute was used. However, there was a confusing situation in the case that multiple such attributes were used on a single element, and even more so when they pointed to different elements. While there was concrete logic for resolving that situation, it was confusing at best. The new logic is controlled by two attributes: - popovertarget - popovertargetaction The element reference is dictated by `popovertarget`, via an idref or through element reflection (via `foo.popoverTargetElement = bar`). The behavior is dictated by the (string valued) popovertargetaction attribute, which can be one of "toggle", "show", or "hide". If any other value is used (including missing attribute or invalid value), the behavior and IDL reflected value is "toggle". [1] whatwg/html#8894 (comment) Bug: 1307772 Change-Id: I2e530efe26032599f9376c8d5f4fe2a7f430a26b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4288730 Auto-Submit: Mason Freed <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Commit-Queue: Mason Freed <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1109867} -- wpt-commits: 588e82830bb860050168fa89eddc93ac32293662 wpt-pr: 38701
- Loading branch information
1 parent
26fcacb
commit ab3e4e2
Showing
9 changed files
with
119 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.