mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +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
8
Tests/LibWeb/Ref/item-with-negative-z-index-ref.html
Normal file
8
Tests/LibWeb/Ref/item-with-negative-z-index-ref.html
Normal 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>
|
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>
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue