Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
fieldset {
background: aqua;
color: black;
position: absolute;
top: 20px;
left: 20px;
}
</style>
<script>
window.onload=function(){
document.body.offsetHeight;
document.getElementById("set").style.height = "200px";
}
</script>
</head>
<body>
<fieldset id="set" style="width:200px; height:40px;">
This should be in a square.
</fieldset>
</body>
</html>