fieldset-height-resize-1.html (633B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 5 <title>Testcase, bug 1576864</title> 6 <meta name="viewport" content="width=device-width, initial-scale=1"> 7 8 <style> 9 10 fieldset { 11 background: aqua; 12 color: black; 13 position: absolute; 14 top: 20px; 15 left: 20px; 16 } 17 18 </style> 19 20 <script> 21 22 window.onload=function(){ 23 document.body.offsetHeight; 24 document.getElementById("set").style.height = "200px"; 25 } 26 27 </script> 28 29 </head> 30 <body> 31 32 <fieldset id="set" style="width:200px; height:40px;"> 33 This should be in a square. 34 </fieldset> 35 36 </body> 37 </html>