repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git]
/
layout
/
reftests
/
abs-pos
/
abs-pos-auto-margin-centered.html
blob
9ca4bdbe5054c307e5b6a3fb518bdc899356f0df
1
<!DOCTYPE
HTML
>
2
<title>
absolutely positioned element should be vertically centered even if the height is bigger than that of the containing block (reference) - bug
812899
</title>
3
<style>
4
body
>
div {
5
font-size:
16
px;
6
position: relative;
7
border: red solid;
8
margin-top:
5
em;
9
width:
5
em;
10
height:
5
em;
11
}
12
13
body
>
div
>
div {
14
position: absolute;
15
border: medium solid blue;
16
margin: auto auto;
17
height:
150
%;
18
width:
150
%;
19
left:
0
px;
20
right:
0
px;
21
top:
0
px;
22
bottom:
0
px;
23
}
24
</style>
25
26
<body>
27
<div>
28
<div></div>
29
</div>
30
</body>
31
32
</html>