mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 16:24:58 +00:00

With this change, a stacking context can be established by any paintable, including inline paintables. The stacking context traversal is updated to remove the assumption that the stacking context root is paintable box.
17 lines
303 B
HTML
17 lines
303 B
HTML
<style>
|
|
#text {
|
|
z-index: 10;
|
|
background: orange;
|
|
position: relative;
|
|
opacity: 0.5;
|
|
width: fit-content;
|
|
}
|
|
#box {
|
|
z-index: 5;
|
|
width: 50px;
|
|
height: 50px;
|
|
background: green;
|
|
position: relative;
|
|
top: -10px;
|
|
}
|
|
</style><div id="text">hello</div><div id="box"></div>
|