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

32 lines
537 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.container {
width: 200px;
background-color: lightgray;
}
.relative-offset {
position: relative;
top: 20px;
left: 30px;
width: 80px;
height: 40px;
background-color: blue;
}
.sibling {
width: 100px;
height: 30px;
background-color: green;
}
</style>
</head>
<body>
<div class="container">
<div class="sibling">Before</div>
<div class="relative-offset">Offset</div>
<div class="sibling">After (normal position, unaffected)</div>
</div>
</body>
</html>