intrinsic-percent-replaced-002.html (577B)
1 <!-- quirks mode --> 2 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes"> 3 <meta name="assert" content="Checks that a replaced element, with an aspect ratio, converts a percent height into an intrinsic width." /> 4 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 5 <style> 6 #float { float: left; height: 100px; background: green; } 7 canvas { height: 100%; } 8 </style> 9 <p style="margin-top: 1em;">Test passes if there is a filled green square.</p> 10 <div id=float> 11 <div> 12 <canvas width=10 height=10></canvas> 13 </div> 14 </div>