forked from mirrors/gecko-dev
Automatic update from web-platform-tests ViewTransitions: Update WICG links to CSSWG drafts R=khushalsagar@chromium.org, bokan@chromium.org Change-Id: Ia287188844b885ace1c3a4544fc2e1f0b6b32fc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5394194 Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Auto-Submit: Vladimir Levin <vmpstr@chromium.org> Reviewed-by: David Bokan <bokan@chromium.org> Commit-Queue: Vladimir Levin <vmpstr@chromium.org> Reviewed-by: Joe Mason <joenotcharles@google.com> Cr-Commit-Position: refs/heads/main@{#1278480} -- wpt-commits: 8c53b2ec0e6ff7171a601c1259b19577b246ec38 wpt-pr: 45336
51 lines
850 B
HTML
51 lines
850 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<title>View transitions: use snapshot containing block for absolute position (ref)</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
|
|
<link rel="author" href="mailto:bokan@chromium.org">
|
|
|
|
<style>
|
|
:root {
|
|
background-color: red;
|
|
}
|
|
|
|
body {
|
|
height: 400vh;
|
|
}
|
|
|
|
#target {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 0px;
|
|
width: 100px;
|
|
height: 100px;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
background: darkseagreen;
|
|
}
|
|
|
|
#view-transition {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 640px;
|
|
width: 700px;
|
|
height: 500px;
|
|
background-color: limegreen;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div id="view-transition">
|
|
<div id="target">TARGET</div>
|
|
</div>
|
|
|
|
<script>
|
|
onload = () => {
|
|
const scrollTargetY = 600;
|
|
window.scrollTo(0, scrollTargetY);
|
|
}
|
|
</script>
|