1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

LibWeb: Treat grid items with z-index != auto as positioned elements

This commit is contained in:
Aliaksandr Kalenik 2023-08-21 17:07:53 +02:00 committed by Andreas Kling
parent 95a8dec373
commit cca779e7f6
5 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,8 @@
<!doctype html><style type="text/css">
* { outline: 1px solid black; }
body { display: grid; }
.foo {
grid-area: 1 / 1 / auto / auto;
background: pink;
}
</style><body><div class="foo">foo</div>

View file

@ -0,0 +1,13 @@
<!doctype html><style type="text/css">
* { outline: 1px solid black; }
body { display: grid; }
.foo {
grid-area: 1 / 1 / auto / auto;
background: pink;
}
.bar {
grid-area: 1 / 1 / auto / auto;
background: orange;
z-index: -1;
}
</style><body><div class="foo">foo</div><div class="bar">bar</div>

View file

@ -1,4 +1,5 @@
{
"item-with-negative-z-index.html": "item-with-negative-z-index-ref.html",
"img-srcset-viewport-relative-sizes.html": "img-srcset-viewport-relative-sizes-ref.html",
"grid-items-painting-order.html": "grid-items-painting-order-ref.html",
"square-flex.html": "square-ref.html",