mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
gfx: Sort layers according to their Z-index value before handing them
off to the compositor. Closes #7166.
This commit is contained in:
parent
ac4ca05337
commit
277cbf407e
4 changed files with 57 additions and 0 deletions
22
tests/ref/layerization_z_order_ref.html
Normal file
22
tests/ref/layerization_z_order_ref.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
#a, #b {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#a {
|
||||
z-index: 2;
|
||||
background: red;
|
||||
}
|
||||
#b {
|
||||
top: 50px;
|
||||
left: 50px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<div id=a></div>
|
||||
<div id=b></div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue