-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1755031 [wpt PR 32817] - Stop propagating inertness into nested b…
…rowsing contexts, a=testonly Automatic update from web-platform-tests Stop propagating inertness into nested browsing contexts See whatwg/html#7605 -- wpt-commits: 0d483a3bea340a2c60cb7a4add49eb63cbba2a64 wpt-pr: 32817
- Loading branch information
1 parent
0322cbc
commit dec72e2
Showing
2 changed files
with
16 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ | |
<link rel="author" title="Oriol Brufau" href="mailto:[email protected]"> | ||
<link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#inert"> | ||
<meta name="assert" content="Checks that a modal dialog marks outer nodes as inert, | ||
but only in its document, not in the parent browsing context. | ||
Also, when an iframe is marked as inert by a modal dialog, | ||
all contents in the nested browsing context are marked as inert too."> | ||
but only in its document, not in the parent browsing context, | ||
nor in nested browsing contexts."> | ||
<div id="log"></div> | ||
<div id="wrapper"> | ||
(main document: outer text) | ||
|
@@ -103,30 +102,30 @@ | |
|
||
checkSelection(window, "(main document: dialog)"); | ||
checkSelection(innerIframeWindow, "(inner iframe: outer text)(inner iframe: dialog)"); | ||
checkSelection(outerIframeWindow, ""); | ||
}, "Modal dialog in the main document marks outer nodes as inert. All contents of the outer iframe are also marked as inert."); | ||
checkSelection(outerIframeWindow, "(outer iframe: outer text)(outer iframe: dialog)"); | ||
}, "Modal dialog in the main document marks outer nodes as inert. Contents of the outer iframe aren't marked as inert."); | ||
|
||
promise_test(async function() { | ||
showModals(this, [innerIframeWindow, window]); | ||
|
||
checkSelection(window, "(main document: dialog)"); | ||
checkSelection(innerIframeWindow, "(inner iframe: dialog)"); | ||
checkSelection(outerIframeWindow, ""); | ||
}, "Modal dialogs in the main document and inner iframe mark outer nodes as inert. All contents of the outer iframe are also marked as inert."); | ||
checkSelection(outerIframeWindow, "(outer iframe: outer text)(outer iframe: dialog)"); | ||
}, "Modal dialogs in the main document and inner iframe mark outer nodes as inert. Contents of the outer iframe aren't marked as inert."); | ||
|
||
promise_test(async function() { | ||
showModals(this, [outerIframeWindow, window]); | ||
|
||
checkSelection(window, "(main document: dialog)"); | ||
checkSelection(innerIframeWindow, "(inner iframe: outer text)(inner iframe: dialog)"); | ||
checkSelection(outerIframeWindow, ""); | ||
}, "Modal dialogs in the main document and outer iframe mark outer nodes as inert. All contents of the outer iframe are also marked as inert."); | ||
checkSelection(outerIframeWindow, "(outer iframe: dialog)"); | ||
}, "Modal dialogs in the main document and outer iframe mark outer nodes as inert. Contents of the outer iframe aren't marked as inert."); | ||
|
||
promise_test(async function() { | ||
showModals(this, [innerIframeWindow, outerIframeWindow, window]); | ||
|
||
checkSelection(window, "(main document: dialog)"); | ||
checkSelection(innerIframeWindow, "(inner iframe: dialog)"); | ||
checkSelection(outerIframeWindow, ""); | ||
}, "Modal dialogs in the main document and both iframes mark outer nodes as inert. All contents of the outer iframe are also marked as inert."); | ||
checkSelection(outerIframeWindow, "(outer iframe: dialog)"); | ||
}, "Modal dialogs in the main document and both iframes mark outer nodes as inert. Contents of the outer iframe aren't marked as inert."); | ||
</script> |