diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-popover-closedby-complex.tentative.html b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-popover-closedby-complex.tentative.html
index 2f45e42d0ab5..a476ee1e3ae2 100644
--- a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-popover-closedby-complex.tentative.html
+++ b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-popover-closedby-complex.tentative.html
@@ -328,6 +328,13 @@
0
;
}
+dialog
+{
+position
+:
+fixed
+;
+}
<
/
style
@@ -692,14 +699,50 @@
inside
popoverA
.
+/
+/
+Either
+way
+both
+popoverB
+and
+dialogB
+should
+close
+.
assertStates
(
-false
+true
modalB
false
false
)
;
+await
+clickOn
+(
+unrelated
+)
+;
+/
+/
+Clicking
+outside
+again
+should
+close
+the
+remaining
+two
+.
+assertStates
+(
+false
+false
+false
+false
+)
+;
}
clicking
outside
@@ -740,27 +783,14 @@
/
Clicking
popoverB
-will
+should
keep
-both
-popovers
-plus
-the
-intervening
-dialogB
-/
-/
+everything
open
-because
-they
-'
-re
-a
-stack
.
assertStates
(
-false
+true
true
true
true
@@ -803,15 +833,16 @@
;
/
/
-dialogB
-is
-nested
-inside
-popoverA
+Only
+popoverB
+should
+be
+light
+dismissed
.
assertStates
(
-false
+true
true
true
false
@@ -854,45 +885,20 @@
;
/
/
-If
-dialogB
-is
-modal
-then
-clicking
-popoverA
-is
-actually
-a
-backdrop
-/
-/
-click
-on
-dialogB
-which
-will
-close
-it
-.
-PopoverA
-stays
-open
-because
-/
-/
+Both
dialogB
-is
-nested
-inside
-popoverA
+and
+popoverB
+should
+be
+light
+dismissed
.
assertStates
(
-false
true
-!
-modalB
+true
+false
false
)
;
@@ -928,26 +934,64 @@
await
clickOn
(
-dialogB
+dialogA
)
;
/
/
-Again
-this
+If
+dialogB
is
-a
-backdrop
-click
+modal
+clicking
+on
+dialogA
+is
+actually
+clicking
on
dialogB
+/
+/
+which
+means
+popoverB
+will
+stay
+open
.
assertStates
(
-false
true
+modalB
+false
+false
+)
+;
+await
+clickOn
+(
+dialogA
+)
+;
+/
+/
+The
+next
+click
+on
+dialogA
+should
+light
+dismiss
+popoverA
+.
+assertStates
+(
true
false
+false
+false
)
;
}