mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision b'1393983442315fc6a96bacda5202036ca10327e3'
This commit is contained in:
parent
37f26f5250
commit
e8bd8b22fa
300 changed files with 3487 additions and 1857 deletions
|
@ -6,16 +6,23 @@
|
|||
.target {
|
||||
contain: paint;
|
||||
width: 100px;
|
||||
height: 8000px;
|
||||
height: 40000px;
|
||||
view-transition-name: target;
|
||||
}
|
||||
|
||||
.green {
|
||||
.top {
|
||||
width: 100%;
|
||||
height: 7900px;
|
||||
background: green
|
||||
height: 100px;
|
||||
background: lightblue;
|
||||
}
|
||||
|
||||
.blue {
|
||||
.middle {
|
||||
width: 100%;
|
||||
height: 39800px;
|
||||
background: green;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
background: blue;
|
||||
|
@ -30,9 +37,10 @@
|
|||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="target1" class="target">
|
||||
<div class="green"></div>
|
||||
<div id="scrollblue" class="blue"></div>
|
||||
<div class="target">
|
||||
<div class="top">This text is at the top of the box</div>
|
||||
<div class="middle">This text is in the middle of the box</div>
|
||||
<div id="scrollblue" class="bottom">This text is at the bottom of the box</div>
|
||||
</div>
|
||||
<div id=hidden class=hidden></div>
|
||||
</body>
|
||||
|
|
|
@ -4,23 +4,29 @@
|
|||
<link rel="help" href="https://github.com/WICG/view-transitions">
|
||||
<link rel="author" href="mailto:khushalsagar@chromium.org">
|
||||
<link rel="match" href="content-with-clip-max-texture-size-ref.html">
|
||||
<meta name=fuzzy content="maxDifference=10;totalPixels=200">
|
||||
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<style>
|
||||
.target {
|
||||
contain: paint;
|
||||
width: 100px;
|
||||
height: 8000px;
|
||||
height: 40000px;
|
||||
view-transition-name: target;
|
||||
}
|
||||
|
||||
.green {
|
||||
.top {
|
||||
width: 100%;
|
||||
height: 7900px;
|
||||
background: green
|
||||
height: 100px;
|
||||
background: lightblue;
|
||||
}
|
||||
|
||||
.blue {
|
||||
.middle {
|
||||
width: 100%;
|
||||
height: 39800px;
|
||||
background: green;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
background: blue;
|
||||
|
@ -33,7 +39,6 @@
|
|||
background: grey;
|
||||
view-transition-name: hidden;
|
||||
}
|
||||
#target1 { view-transition-name: target1; }
|
||||
|
||||
html::view-transition-group(hidden) { animation-duration: 300s; }
|
||||
html::view-transition-image-pair(hidden) { animation: unset; opacity: 0; }
|
||||
|
@ -42,14 +47,15 @@ html::view-transition-old(*), html::view-transition-new(*) {
|
|||
object-fit: none;
|
||||
}
|
||||
|
||||
html::view-transition-old(target1) { animation: unset; opacity: 0; }
|
||||
html::view-transition-new(target1) { animation: unset; opacity: 1; }
|
||||
html::view-transition-old(target) { animation: unset; opacity: 0; }
|
||||
html::view-transition-new(target) { animation: unset; opacity: 1; }
|
||||
|
||||
</style>
|
||||
|
||||
<div id="target1" class="target">
|
||||
<div class="green"></div>
|
||||
<div id="scrollblue" class="blue"></div>
|
||||
<div class="target">
|
||||
<div class="top">This text is at the top of the box</div>
|
||||
<div class="middle">This text is in the middle of the box</div>
|
||||
<div id="scrollblue" class="bottom">This text is at the bottom of the box</div>
|
||||
</div>
|
||||
<div id=hidden class=hidden></div>
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html class=reftest-wait>
|
||||
<title>View transitions: creating animation for non-existant view transition pseudo</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
|
||||
<link rel="author" href="mailto:khushalsagar@chromium.org">
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: blue;
|
||||
view-transition-name: target;
|
||||
contain: paint;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id=first></div>
|
||||
|
||||
<script>
|
||||
promise_test(async t => {
|
||||
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
|
||||
return new Promise(async (resolve, reject) => {
|
||||
let transition = document.startViewTransition();
|
||||
await transition.ready;
|
||||
|
||||
let animation = document.documentElement.animate(
|
||||
{ transform: ['translate(100px)', 'translate(200px)'] },
|
||||
{duration: 100, pseudoElement: '::view-transition-group(bad-target)', fill: "forwards"});
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
animation.currentTime = 200;
|
||||
requestAnimationFrame(() => requestAnimationFrame(resolve));
|
||||
});
|
||||
});
|
||||
}, "animation created with incorrect name");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue