forked from WebKit/WebKit
-
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.
Implement new popover inside invoker behaviour
https://bugs.webkit.org/show_bug.cgi?id=283494 Reviewed by NOBODY (OOPS!). This patch matches the new spec behaviour for when a popover is inside its invoker. See whatwg/html#10770 * LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-nested-in-button-expected.txt: * Source/WebCore/html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::defaultEventHandler): * Source/WebCore/html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::handlePopoverTargetAction const): * Source/WebCore/html/HTMLFormControlElement.h: * Source/WebCore/html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
- Loading branch information
1 parent
d53ea6f
commit 22aa592
Showing
5 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...rted/w3c/web-platform-tests/html/semantics/popovers/popover-nested-in-button-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Button Button | ||
|
||
FAIL clicking a popover nested inside a button should not re-invoke the popover assert_true: Should still be open expected true got false | ||
PASS clicking a popover nested inside a button should not re-invoke the popover | ||
PASS corner case: invoker that is also a popover | ||
FAIL invoker inside popover still works, even with weird nesting assert_true: descendant doesn't close popover expected true got false | ||
PASS invoker inside popover still works, even with weird nesting | ||
|
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