diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt index 65795191a7792..29bdf33aa07c2 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt @@ -6,17 +6,17 @@ PASS Clicking inside a popover does not close that popover PASS Popovers close on pointerup, not pointerdown PASS Synthetic events can't close popovers PASS Moving focus outside the popover should not dismiss the popover -PASS Clicking inside a child popover shouldn't close either popover -PASS Clicking inside a parent popover should close child popover +FAIL Clicking inside a child popover shouldn't close either popover assert_true: popover1 should be open expected true got false +FAIL Clicking inside a parent popover should close child popover assert_true: expected true got false PASS Clicking on invoking element, after using it for activation, shouldn't close its popover PASS Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case) -PASS Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case, not used for invocation) +FAIL Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case, not used for invocation) assert_true: expected true got false PASS Clicking on invoking element, even if it wasn't used for activation, shouldn't close its popover PASS Clicking on popovertarget element, even if it wasn't used for activation, should hide it exactly once PASS Clicking on anchor element (that isn't an invoking element) shouldn't prevent its popover from being closed -PASS Dragging from an open popover outside an open popover should leave the popover open +FAIL Dragging from an open popover outside an open popover should leave the popover open assert_true: expected true got false PASS A popover inside an invoking element doesn't participate in that invoker's ancestor chain -PASS An invoking element that was not used to invoke the popover can still be part of the ancestor chain +PASS An invoking element that was not used to invoke the popover is not part of the ancestor chain FAIL Scrolling within a popover should not close the popover promise_test: Unhandled rejection with value: object "Error: Unknown source type "wheel"." PASS Clicking inside a shadow DOM popover does not close that popover PASS Clicking outside a shadow DOM popover should close that popover diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss.html index 02781f71b22f3..ee85b44124832 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss.html +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss.html @@ -298,11 +298,10 @@ assert_false(popover3.matches(':popover-open')); popover3.showPopover(); assert_true(popover3.matches(':popover-open')); - assert_true(popover5.matches(':popover-open')); - popover5.hidePopover(); + assert_false(popover5.matches(':popover-open'),'Popover 5 was not invoked from popover3\'s invoker'); + popover3.hidePopover(); assert_false(popover3.matches(':popover-open')); - assert_false(popover5.matches(':popover-open')); - },'An invoking element that was not used to invoke the popover can still be part of the ancestor chain'); + },'An invoking element that was not used to invoke the popover is not part of the ancestor chain');
Inside popover 6 diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-shadow-dom.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-shadow-dom.html index 9279a121bea73..87293f1e3d56c 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-shadow-dom.html +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-shadow-dom.html @@ -187,7 +187,7 @@ polyfill_declarative_shadow_dom(test5); const [popover1,popover2] = getPopoverReferences('test5'); popover1.showPopover(); - popover2.showPopover(); + popover1.querySelector('button').click(); // Use invoker to keep 2 visible // Both 1 and 2 should be open at this point. assert_true(popover1.matches(':popover-open'), 'popover1 not open'); assert_true(isElementVisible(popover1)); diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled-expected.txt index a135633496929..12fc45f41c117 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled-expected.txt @@ -2,11 +2,10 @@ form helloother button PASS Disabled popover*target buttons should not affect the popover heirarchy. -PASS Disabling popover*target buttons when popovers are open should still cause all popovers to be closed when the formerly outer popover is closed. -PASS Disabling popover*target buttons when popovers are open should still cause all popovers to be closed when the formerly inner popover is closed. -PASS Setting the form attribute on popover*target buttons when popovers are open should close all popovers. -PASS Changing the input type on a popover*target button when popovers are open should close all popovers. -PASS Disconnecting popover*target buttons when popovers are open should close all popovers. -PASS Changing the popovertarget attribute to break the chain should close all popovers. +PASS Disabling popover*target buttons when popovers are open should not cause popovers to be closed. +PASS Setting the form attribute on popover*target buttons when popovers are open should not close them. +PASS Changing the input type on a popover*target button when popovers are open should not close anything. +PASS Disconnecting popover*target buttons when popovers are open should not close anything. +PASS Changing the popovertarget attribute to break the chain should not close anything. PASS Modifying popovertarget on a button which doesn't break the chain shouldn't close any popovers. diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled.html index bf1f297148442..d5c951768c083 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled.html +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-target-element-disabled.html @@ -11,6 +11,10 @@ - -
- -
-
popover
-
@@ -69,18 +52,18 @@
@@ -90,18 +73,18 @@
@@ -111,18 +94,18 @@
@@ -132,18 +115,18 @@
diff --git a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-2-expected.txt b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-2-expected.txt deleted file mode 100644 index bb1a285133b8f..0000000000000 --- a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-2-expected.txt +++ /dev/null @@ -1,10 +0,0 @@ -Button1 Button2 Invoker1 Button3 Button4 -Invoker after -Show popover -Toggle popover Other focusable element - -FAIL Popover focus navigation assert_equals: Focus should move from invoker into the open popover expected Element node but got Element node -PASS Circular reference tab navigation -PASS Popover focus returns when popover is hidden by invoker -FAIL Popover focus only returns to invoker when focus is within the popover assert_equals: focus does not move because it was not inside the popover expected Element node Other focusable element but got Element node -PASS Popover corner cases test: default behavior - popover is not focused -PASS Popover focus test: autofocus popover -FAIL Popover button click focus test: autofocus popover assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus popover -PASS Popover focus test: autofocus empty popover -FAIL Popover button click focus test: autofocus empty popover assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus empty popover -PASS Popover focus test: autofocus popover with button -FAIL Popover button click focus test: autofocus popover with button assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus popover with button -PASS Popover focus test: autofocus child -FAIL Popover button click focus test: autofocus child assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus child -PASS Popover focus test: autofocus on tabindex=0 element -FAIL Popover button click focus test: autofocus on tabindex=0 element assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus on tabindex=0 element -PASS Popover focus test: autofocus multiple children -FAIL Popover button click focus test: autofocus multiple children assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus multiple children -PASS Popover focus test: autofocus popover and multiple autofocus children -FAIL Popover button click focus test: autofocus popover and multiple autofocus children assert_equals: focus should move to the button when clicked, and should stay there when the popover closes expected Element node -PASS Popover corner cases test: autofocus popover and multiple autofocus children - diff --git a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt index a440e1d457fe2..9bd035db59aaf 100644 --- a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt +++ b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt @@ -6,17 +6,17 @@ PASS Clicking inside a popover does not close that popover PASS Popovers close on pointerup, not pointerdown PASS Synthetic events can't close popovers PASS Moving focus outside the popover should not dismiss the popover -PASS Clicking inside a child popover shouldn't close either popover -PASS Clicking inside a parent popover should close child popover +FAIL Clicking inside a child popover shouldn't close either popover assert_true: popover1 should be open expected true got false +FAIL Clicking inside a parent popover should close child popover assert_true: expected true got false PASS Clicking on invoking element, after using it for activation, shouldn't close its popover PASS Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case) -PASS Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case, not used for invocation) +FAIL Clicking on invoking element, after using it for activation, shouldn't close its popover (nested case, not used for invocation) assert_true: expected true got false PASS Clicking on invoking element, even if it wasn't used for activation, shouldn't close its popover PASS Clicking on popovertarget element, even if it wasn't used for activation, should hide it exactly once PASS Clicking on anchor element (that isn't an invoking element) shouldn't prevent its popover from being closed -PASS Dragging from an open popover outside an open popover should leave the popover open +FAIL Dragging from an open popover outside an open popover should leave the popover open assert_true: expected true got false PASS A popover inside an invoking element doesn't participate in that invoker's ancestor chain -PASS An invoking element that was not used to invoke the popover can still be part of the ancestor chain +PASS An invoking element that was not used to invoke the popover is not part of the ancestor chain FAIL Scrolling within a popover should not close the popover promise_test: Unhandled rejection with value: object "Error: Unknown source type "wheel"." PASS Clicking inside a shadow DOM popover does not close that popover PASS Clicking outside a shadow DOM popover should close that popover diff --git a/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt b/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt index d2fd15e767b50..f96707121939e 100644 --- a/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt +++ b/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/popovers/popover-light-dismiss-expected.txt @@ -6,17 +6,17 @@ FAIL Clicking inside a popover does not close that popover assert_false: expecte FAIL Popovers close on pointerup, not pointerdown assert_false: expected false got true FAIL Synthetic events can't close popovers assert_false: expected false got true FAIL Moving focus outside the popover should not dismiss the popover assert_equals: Focus should move to a button outside the popover expected Element node