abs-pos-replaced-vrl-001.html (1247B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com"> 4 <link rel="author" href="https://mozilla.org" title="Mozilla"> 5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"> 6 <meta name="assert" content="This test checks that absolutely positioned elements are positioned correctly, when their writing mode is different from that of their containing block." /> 7 <link rel="match" href="abs-pos-replaced-vrl-001-ref.html"> 8 <style> 9 .vert-cb { 10 position: relative; 11 width: 250px; 12 writing-mode: vertical-rl; 13 } 14 .horiz-parent { 15 width: 150px; 16 writing-mode: horizontal-tb; 17 } 18 audio, video, canvas, iframe, svg { 19 position: absolute; 20 border: 1px solid blue; 21 } 22 </style> 23 <body> 24 <div class="vert-cb"> 25 <div class="horiz-parent"> 26 <audio controls></audio> 27 <video controls style="top: 50px;"></video> 28 <canvas style="top: 210px;"></canvas> 29 <iframe style="top: 370px;"></iframe> 30 <!-- Note: Including width/height attrs in order to test SVG without 31 hitting https://bugzilla.mozilla.org/show_bug.cgi?id=1766304 --> 32 <svg style="top: 530px;" width="300" height="20"></svg> 33 </div> 34 </div> 35 </body>