Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'

This commit is contained in:
WPT Sync Bot 2023-01-18 01:45:07 +00:00
parent 619a46113f
commit 1c6b303ef2
396 changed files with 29611 additions and 1967 deletions

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>View transitions: Dialog element in RTL scrollable iframe</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:bokan@chromium.org">
<style>
iframe {
width: 50vw;
height: 50vh;
}
</style>
</head>
<body>
<iframe src="support/dialog-in-rtl-iframe-child.html?show">
</iframe>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class=reftest-wait>
<head>
<title>View transitions: Dialog element in RTL scrollable iframe</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:bokan@chromium.org">
<link rel="match" href="dialog-in-rtl-iframe-ref.html">
<meta name=fuzzy content="dialog-in-rtl-iframe-ref.html:0-80;0-500">
<script src="/common/reftest-wait.js"></script>
<style>
iframe {
width: 50vw;
height: 50vh;
}
</style>
<script>
onload = () => {
requestAnimationFrame(()=>{requestAnimationFrame(()=> {
frames[0].window.startTransition();
frames[0].window.transition.ready.then(() => {
requestAnimationFrame(()=>{requestAnimationFrame(()=> {
takeScreenshot();
})});
});
})});
}
</script>
</head>
<body>
<iframe src="support/dialog-in-rtl-iframe-child.html">
</iframe>
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html dir="rtl">
<head>
<style>
body {
height: 200vh;
}
::view-transition-new(*) {
animation: unset;
opacity: 1;
}
::view-transition-old(*) {
animation-duration: 30s;
opacity: 0;
}
dialog {
width: 50dvw;
height: 50dvh;
box-sizing: border-box;
background-color: limegreen;
border: 1px solid black;
}
</style>
<script>
function show() {
document.getElementById('dialog').showModal();
}
function startTransition() {
window.transition = document.startViewTransition(() => {
show();
});
}
const params = new URLSearchParams(window.location.search);
if (params.has('show')) {
addEventListener('load', show);
}
</script>
</head>
<body>
<dialog id="dialog">
</dialog>
</body>
</html>