forked from web-platform-tests/wpt
-
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.
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=244989 (web-…
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<title>CSS Containment Test: Scrolling overflow works when paint is contained"</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint"> | ||
<meta name="assert" content="Scrolling overflow works when paint is contained."> | ||
|
||
<script src="/common/reftest-wait.js"></script> | ||
<script src="/common/rendering-utils.js"></script> | ||
|
||
<style> | ||
.content { | ||
height: 100vh; | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<body> | ||
<div class="content"></div> | ||
|
||
<script> | ||
waitForAtLeastOneFrame().then(() => { | ||
document.body.scrollTop = 100; | ||
takeScreenshot(); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</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,32 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<title>CSS Containment Test: Scrolling overflow works when paint is contained"</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint"> | ||
<link rel="match" href="contain-paint-050-ref.html"> | ||
<meta name="assert" content="Scrolling overflow works when paint is contained."> | ||
|
||
<script src="/common/reftest-wait.js"></script> | ||
<script src="/common/rendering-utils.js"></script> | ||
|
||
<style> | ||
body { | ||
contain: paint; | ||
} | ||
.content { | ||
height: 100vh; | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<body> | ||
<div class="content"></div> | ||
|
||
<script> | ||
waitForAtLeastOneFrame().then(() => { | ||
document.body.scrollTop = 100; | ||
takeScreenshot(); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |