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=272496
- Loading branch information
1 parent
5adce6f
commit cde638c
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
css/css-view-transitions/new-content-changes-overflow-left-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,20 @@ | ||
<!DOCTYPE html> | ||
<title>View transitions: capture elements and then change overflow (ref)</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/"> | ||
<style> | ||
body { background: pink } | ||
#target { | ||
position: relative; | ||
background: green; | ||
left: 10px; | ||
width: 100px; | ||
height: 100px; | ||
view-transition-name: target; | ||
} | ||
#target.toggle { | ||
outline: 300px solid transparent; | ||
} | ||
</style> | ||
|
||
<div id=target class=toggle></div> | ||
|
46 changes: 46 additions & 0 deletions
46
css/css-view-transitions/new-content-changes-overflow-left.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,46 @@ | ||
<!DOCTYPE html> | ||
<meta name="timeout" content="long"> | ||
<html class=reftest-wait> | ||
<title>View transitions: capture elements and then change overflow</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/"> | ||
<link rel="author" href="mailto:[email protected]"> | ||
<link rel="author" href="mailto:[email protected]"> | ||
<link rel="match" href="new-content-changes-overflow-left-ref.html"> | ||
<script src="/common/reftest-wait.js"></script> | ||
<style> | ||
#target { | ||
position: relative; | ||
background: green; | ||
left: 10px; | ||
width: 100px; | ||
height: 100px; | ||
view-transition-name: target; | ||
} | ||
#target.toggle { | ||
outline: 300px solid transparent; | ||
} | ||
|
||
html::view-transition-group(*) { animation-duration: 300s; } | ||
html::view-transition-new(*) { animation: unset; opacity: 1; } | ||
html::view-transition-old(*) { animation: unset; opacity: 0; } | ||
html::view-transition-group(root) { animation: unset; opacity: 0; } | ||
html::view-transition { background: pink; } | ||
</style> | ||
|
||
<div id=target></div> | ||
<script> | ||
|
||
async function runTest() { | ||
document.startViewTransition().ready.then(() => { | ||
requestAnimationFrame(() => { | ||
requestAnimationFrame(() => { | ||
target.classList.add("toggle"); | ||
requestAnimationFrame(takeScreenshot); | ||
}); | ||
}); | ||
}); | ||
} | ||
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest)); | ||
</script> | ||
|
||
|