mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
layout: Make position: relative
with non-auto z-index
create a
stacking context. Improves imgur.com and Fast Company articles.
This commit is contained in:
parent
d48f6ffbad
commit
fed904fff5
6 changed files with 48 additions and 6 deletions
16
tests/ref/position_relative_stacking_context_ref.html
Normal file
16
tests/ref/position_relative_stacking_context_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
#a {
|
||||
position: absolute;
|
||||
background: green;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div id=a></div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue