mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision b'2d1ad05908ee5447fdfa70eed9757273aa5da367'
This commit is contained in:
parent
7809bb7cba
commit
84de92ecaf
83 changed files with 1324 additions and 779 deletions
|
@ -17,6 +17,7 @@ div { box-sizing: border-box; will-change: transform }
|
|||
.shared {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
view-transition-name: shared;
|
||||
}
|
||||
body { background: pink }
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="help" href="https://github.com/WICG/view-transitions">
|
||||
<link rel="author" href="mailto:vmpstr@chromium.org">
|
||||
<link rel="match" href="3d-transform-incoming-ref.html">
|
||||
<meta name=fuzzy content="3d-transform-incoming-ref.html:0-80;0-500">
|
||||
<meta name=fuzzy content="3d-transform-incoming-ref.html:0-255;0-500">
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<style>
|
||||
div { box-sizing: border-box; will-change: transform }
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<title>View transitions: validates that transform-origin value is default for view-transition-group (ref)</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
|
||||
<link rel="author" href="mailto:khushalsagar@chromium.org">
|
||||
<style>
|
||||
.target {
|
||||
width: 100px;
|
||||
height: 150px;
|
||||
background: green;
|
||||
position: fixed;
|
||||
top: 200px;
|
||||
left: 200px;
|
||||
transform: rotate(90deg);
|
||||
view-transition-name: target;
|
||||
clip-path: inset(1px 1px 1px 1px);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="target"></div>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html class=reftest-wait>
|
||||
<title>View transitions: validates that transform-origin value is default for view-transition-group</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
|
||||
<link rel="author" href="mailto:khushalsagar@chromium.org">
|
||||
<link rel="match" href="transform-origin-view-transition-group-ref.html">
|
||||
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<style>
|
||||
.target {
|
||||
width: 100px;
|
||||
height: 150px;
|
||||
background: green;
|
||||
view-transition-name: target;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
contain: paint;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: grey;
|
||||
view-transition-name: hidden;
|
||||
}
|
||||
|
||||
html::view-transition-group(hidden) { animation-duration: 300s; }
|
||||
html::view-transition-image-pair(hidden) { animation: unset; opacity: 0; }
|
||||
|
||||
html::view-transition-group(target) {
|
||||
animation: unset;
|
||||
transform: rotate(90deg);
|
||||
top: 200px;
|
||||
left: 200px;
|
||||
/* The edges have minor pixel differences due to blending in highdpi */
|
||||
clip-path: inset(1px 1px 1px 1px);
|
||||
}
|
||||
|
||||
html::view-transition-old(target) {
|
||||
opacity: 1;
|
||||
animation: unset;
|
||||
}
|
||||
html::view-transition-new(target) {
|
||||
opacity: 0;
|
||||
animation: unset;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="target"></div>
|
||||
<div class="hidden"></div>
|
||||
|
||||
<script>
|
||||
failIfNot(document.startViewTransition, "Missing document.startViewTransition");
|
||||
|
||||
async function runTest() {
|
||||
document.startViewTransition().ready.then(
|
||||
requestAnimationFrame(() => requestAnimationFrame(takeScreenshot)));
|
||||
}
|
||||
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue