svg-with-precent-dimensions-relayout-ref.html (420B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="help" href="https://crbug.com/1016759"> 4 <body> 5 <span style="position:relative; font-size:100px;"> 6 <br> 7 <svg style="position:absolute; border:1px solid black; width:100%; height:100%;"> 8 <rect x="10" y="10" width="100" height="100" fill="red" id="child" stroke="blue" stroke-width="5px"/> 9 </svg> 10 </span> 11 </body> 12 </html>