massive-element-on-top-of-viewport-offscreen-ref.html (970B)
1 <!DOCTYPE html> 2 <title>View transitions: massive element on top of viewport and completely offscreen (ref)</title> 3 <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/"> 4 <link rel="author" href="mailto:khushalsagar@chromium.org"> 5 <style> 6 .target_at_bottom_edge { 7 position: fixed; 8 inset-block-end: 0; 9 inset-inline-start: 0; 10 } 11 12 .target { 13 contain: paint; 14 inline-size: 100px; 15 block-size: 40000px; 16 view-transition-name: target; 17 } 18 19 .top { 20 inline-size: 100%; 21 block-size: 100px; 22 background: lightblue; 23 } 24 25 .middle { 26 inline-size: 100%; 27 block-size: 39800px; 28 background: green; 29 } 30 31 .bottom { 32 inline-size: 100%; 33 block-size: 100px; 34 background: blue; 35 } 36 </style> 37 <body> 38 <div class="target target_at_bottom_edge"> 39 <div class="top">This text is at the top of the box</div> 40 <div class="middle">This text is in the middle of the box</div> 41 <div id="scrollblue" class="bottom">This text is at the bottom of the box</div> 42 </div> 43 </body>