summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/percent-top-value-with-relative-position.html
blob: 9f7355f7944ba9d96a5a0602802249b48fa75a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<style>
#wrap {
    width: 100%;
    height: 100%;
}

#outside_frame {
    position: relative;
    top: 50%;
}
/* safari hack */
html*#outside_frame {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -480px;
    margin-top: -254px;
    background-color: purple;
}
</style>
</head>
<body>
<div id="wrap">
    <div id="outside_frame">This test passes if the text is rendered in the middle of the page.</div>
</div>
</body>
</html>