blob: 839539a5d59775c2c4a0b2b309380d23b8abac1f [file] [log] [blame]
<!DOCTYPE html>
<!--
| This test checks that a fixed position element resolves its width/height
| percentage values relative to the viewport.
-->
<html>
<head>
<style>
.static-container {
width: 50px;
height: 50px;
margin-top: 10px;
margin-left: 10px;
background-color: rgb(100, 255, 100);
}
.fixed-element {
position: fixed;
width: 25%;
height: 25%;
top: 25px;
left: 25px;
background-color: rgb(100, 100, 255);
}
</style>
</head>
<body>
<div class="static-container"></div>
<div class="fixed-element"></div>
</div>
</body>
</html>