mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'
This commit is contained in:
parent
619a46113f
commit
1c6b303ef2
396 changed files with 29611 additions and 1967 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue