mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'4435c35d9085ed2be61e64d0093b8e1b0e7a877b'
This commit is contained in:
parent
901b76297d
commit
4031d79cea
383 changed files with 8858 additions and 2734 deletions
|
@ -34,7 +34,7 @@ html::view-transition-image-pair(hidden) { opacity: 0; }
|
|||
html::view-transition-group(before) { animation-duration: 0s; }
|
||||
html::view-transition-image-pair(before) { filter: invert(1); }
|
||||
html::view-transition-new(before) { animation-duration: 0s; }
|
||||
html::view-transition-old(*) { animation-duration: 0s; }
|
||||
html::view-transition-old(before) { animation-duration: 0s; }
|
||||
|
||||
html::view-transition-group(after) { animation-duration: 0s; }
|
||||
html::view-transition-image-pair(after) { filter: invert(1); }
|
||||
|
@ -55,13 +55,12 @@ html::view-transition { background: lightpink; }
|
|||
async function runTest() {
|
||||
hidden.style.viewTransitionName = "hidden";
|
||||
before.style.viewTransitionName = "before";
|
||||
document.startViewTransition(() => {
|
||||
let transition = document.startViewTransition(() => {
|
||||
before.remove();
|
||||
hidden.style.viewTransitionName = "";
|
||||
after.style.viewTransitionName = "after";
|
||||
|
||||
requestAnimationFrame(() => requestAnimationFrame(takeScreenshot))
|
||||
});
|
||||
transition.ready.then(() => requestAnimationFrame(() => requestAnimationFrame(takeScreenshot)));
|
||||
}
|
||||
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue