32 lines
921 B
HTML
32 lines
921 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<title>View transitions: basic cross-document navigation opt-in removed</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
|
|
<link rel="author" href="mailto:khushalsagar@chromium.org">
|
|
<link rel="match" href="root-element-transition-no-opt-in-ref.html">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<style id="vt-style">
|
|
@view-transition { navigation: auto; }
|
|
</style>
|
|
<style>
|
|
html {
|
|
background: blue;
|
|
}
|
|
.hidden {
|
|
width: 10px;
|
|
height: 10px;
|
|
view-transition-name: hidden;
|
|
background: green;
|
|
contain: layout;
|
|
}
|
|
</style>
|
|
<div class="hidden"></div>
|
|
<script>
|
|
function runTest() {
|
|
document.querySelector("#vt-style").remove();
|
|
const url = "resources/root-element-transition.html";
|
|
window.location.replace(new URL(url, window.location));
|
|
}
|
|
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
|
|
</script>
|
|
</html>
|