forked from mirrors/gecko-dev
Automatic update from web-platform-tests WebKit export: [view-transitions] Start running all tests (#43327) https://bugs.webkit.org/show_bug.cgi?id=265279 -- wpt-commits: 093c90ba8da4d0b13d6f9710cee5ce4ea287ea5e wpt-pr: 43327
52 lines
1.2 KiB
HTML
52 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<title>View transitions: writing mode on a container</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
|
|
<link rel="author" href="mailto:vmpstr@chromium.org">
|
|
<link rel="match" href="writing-mode-container-resize-ref.html">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
|
|
<style>
|
|
#target {
|
|
view-transition-name: target;
|
|
background: lightblue;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.vertical {
|
|
writing-mode: vertical-lr;
|
|
}
|
|
::view-transition-group(root) {
|
|
visibility: hidden;
|
|
animation-duration: 500s;
|
|
}
|
|
::view-transition-old(target) {
|
|
animation: unset;
|
|
opacity: 1;
|
|
}
|
|
::view-transition-new(target) {
|
|
animation: unset;
|
|
opacity: 0;
|
|
}
|
|
::view-transition-group(target) {
|
|
height: 50px;
|
|
border: 1px solid black;
|
|
animation: unset;
|
|
}
|
|
::view-transition {
|
|
background: pink;
|
|
}
|
|
</style>
|
|
|
|
<div id=target class=vertical></div>
|
|
|
|
<script>
|
|
failIfNot(document.startViewTransition, "Missing document.startViewTransition");
|
|
|
|
function runTest() {
|
|
const transition = document.startViewTransition(() => target.remove());
|
|
transition.ready.then(takeScreenshot);
|
|
}
|
|
|
|
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
|
|
</script>
|