mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
LibWeb: Treat grid items with z-index != auto as positioned elements
This commit is contained in:
parent
95a8dec373
commit
cca779e7f6
5 changed files with 33 additions and 1 deletions
13
Tests/LibWeb/Ref/item-with-negative-z-index.html
Normal file
13
Tests/LibWeb/Ref/item-with-negative-z-index.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue