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

35 lines
728 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
width: 200px;
height: 100px;
background-color: lightgray;
z-index: 0;
}
.behind {
position: absolute;
top: 20px;
left: 20px;
width: 100px;
height: 60px;
background-color: red;
z-index: -1;
}
.content {
width: 150px;
height: 40px;
background-color: green;
}
</style>
</head>
<body>
<div class="container">
<div class="behind">Behind</div>
<div class="content">In front</div>
</div>
</body>
</html>