Files
rust_browser/tests/goldens/fixtures/054-position-absolute.html
Zachary D. Rowitsch 2bf8ce6de8 Phase 3: Initial commit
2026-01-31 16:20:53 -05:00

33 lines
572 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.container {
width: 300px;
height: 200px;
background-color: lightgray;
}
.absolute-box {
position: absolute;
top: 10px;
left: 20px;
width: 80px;
height: 50px;
background-color: blue;
}
.sibling {
width: 100px;
height: 30px;
background-color: green;
}
</style>
</head>
<body>
<div class="container">
<div class="sibling">In-flow sibling</div>
<div class="absolute-box">Absolute to viewport</div>
<div class="sibling">Another sibling (ignores absolute)</div>
</div>
</body>
</html>