Files
rust_browser/tests/goldens/fixtures/056-z-index-basic.html
Zachary D. Rowitsch 2bf8ce6de8 Phase 3: Initial commit
2026-01-31 16:20:53 -05:00

39 lines
814 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
width: 200px;
height: 100px;
background-color: lightgray;
z-index: 0;
}
.box1 {
position: absolute;
top: 10px;
left: 10px;
width: 80px;
height: 60px;
background-color: red;
z-index: 1;
}
.box2 {
position: absolute;
top: 30px;
left: 30px;
width: 80px;
height: 60px;
background-color: blue;
z-index: 2;
}
</style>
</head>
<body>
<div class="container">
<div class="box1">First</div>
<div class="box2">Second</div>
</div>
</body>
</html>