replaced-element-015.html (773B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1055095"> 3 <link rel="match" href="../reference/replaced-element-015-ref.html"> 4 <p>Test passes if it matches the reference.</p> 5 <div style="display: inline-grid; width: 100px;"> 6 <div id="target" style="height: 100%; margin-bottom: 50px;"> 7 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='green'/></svg>" 8 style="height: 100%"> 9 </div> 10 </div> 11 <script> 12 const target = document.getElementById('target'); 13 document.body.offsetTop; 14 target.style.marginBottom = ''; 15 document.body.offsetTop; 16 target.style.marginBottom = '50px'; 17 document.body.offsetTop; 18 target.style.marginBottom = ''; 19 </script>