-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c-v: auto descendant in dialog is shown on showModal (#40973)
Verify that content-visibility: auto descendant in dialog is shown on showModal. Also rename the previous equivalent test that was testing popover instead of dialog.
- Loading branch information
Showing
4 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...content-visibility/content-visibility-with-popover-top-layer-and-auto-descendant-ref.html
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<meta charset="utf8"> | ||
<title>CSS Content Visibility: content-visibility: auto descendant in popover is shown on showPopover"</title> | ||
<meta name="assert" content="content-visibility: auto descendant in popover is shown on showPopover"> | ||
|
||
<div id="spacer" style="height: 100vh"></div> | ||
<div popover="manual" style="display: block; position: static;" id="popover"> | ||
<span>Test passes if this is visible</span> | ||
</div> | ||
|
||
<script> | ||
popover.showPopover(); | ||
</script> |
31 changes: 31 additions & 0 deletions
31
...ain/content-visibility/content-visibility-with-popover-top-layer-and-auto-descendant.html
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html class="reftest-wait"> | ||
<meta charset="utf8"> | ||
<title>CSS Content Visibility: content-visibility: auto descendant in popover is shown on showPopover</title> | ||
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> | ||
<link rel="match" href="content-visibility-with-popover-top-layer-and-auto-descendant-ref.html"> | ||
<meta name="assert" content="content-visibility: auto descendant in popover is shown on showPopover"> | ||
<script src="/common/reftest-wait.js"></script> | ||
|
||
<style> | ||
#inner { | ||
content-visibility: auto; | ||
contain-intrinsic-size: 100px 100px; | ||
} | ||
</style> | ||
|
||
<div id="spacer" style="height: 100vh"></div> | ||
<div popover="manual" style="display: block; position: static;" id="popover"> | ||
<span id="inner">Test passes if this is visible</span> | ||
</div> | ||
|
||
<script> | ||
function runTest() { | ||
popover.showPopover(); | ||
requestAnimationFrame(takeScreenshot); | ||
} | ||
|
||
window.onload = runTest; | ||
</script> | ||
</html> |
10 changes: 5 additions & 5 deletions
10
...contain/content-visibility/content-visibility-with-top-layer-and-auto-descendant-ref.html
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,13 +1,13 @@ | ||
<!doctype html> | ||
<meta charset="utf8"> | ||
<title>CSS Content Visibility: content-visibility: auto descendant in popover is shown on showPopover"</title> | ||
<meta name="assert" content="content-visibility: auto descendant in popover is shown on showPopover"> | ||
<title>CSS Content Visibility: content-visibility: auto descendant in dialog is shown on showModal"</title> | ||
<meta name="assert" content="content-visibility: auto descendant in dialog is shown on showModal"> | ||
|
||
<div id="spacer" style="height: 100vh"></div> | ||
<div popover="manual" style="display: block; position: static;" id="popover"> | ||
<dialog id="dialog" style="display: block; position: static;"> | ||
<span>Test passes if this is visible</span> | ||
</div> | ||
</dialog> | ||
|
||
<script> | ||
popover.showPopover(); | ||
dialog.showModal(); | ||
</script> |
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