abs-pos-with-replaced-child.html (722B)
1 <!DOCTYPE html> 2 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 3 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes"> 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/"> 5 <meta name="assert" content="This test checks that the intrinsic size of an absolute positioned element is calculated correctly, with a replaced child that has a percentage block-size." /> 6 <p>Test passes if there is a filled green square.</p> 7 <div style="position: relative; width: 200px; height: 100px;"> 8 <div style="position: absolute; background: green; writing-mode: vertical-rl; width: 50%;"> 9 <canvas style="width: 100%;" width=1 height=1></canvas> 10 </div> 11 </div>