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

41 lines
689 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.outer {
width: 400px;
background-color: lightgray;
padding: 20px;
}
.relative-container {
position: relative;
width: 200px;
height: 150px;
background-color: lightblue;
padding: 10px;
}
.absolute-child {
position: absolute;
top: 10px;
right: 10px;
width: 60px;
height: 40px;
background-color: red;
}
.in-flow {
width: 80px;
height: 30px;
background-color: green;
}
</style>
</head>
<body>
<div class="outer">
<div class="relative-container">
<div class="in-flow">In flow</div>
<div class="absolute-child">Absolute (relative to parent)</div>
</div>
</div>
</body>
</html>