blob: b6261bb3fcd8e1089060a5aeb1fb2ce8d45503ae (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<!DOCTYPE HTML>
<html>
<head>
<title>Pixel rounding testcase</title>
<style type="text/css">
html, body { margin: 0; border: none; padding: 0; }
body > div { margin: 10px; height: 80px; position: relative; }
body > div > div {
position: absolute; top: 0; left: 0.5px; height: 10px; width: 10px;
}
body > div > div { background: green; }
.tl { top: 20px; }
.tr { margin-top: 40px; }
.bl { left: 20.5px; }
.br { margin-left: 40px; }
div.one > div.tl { border-top-left-radius: 1px; }
div.one > div.tr { border-top-right-radius: 1px; }
div.one > div.bl { border-bottom-left-radius: 1px; }
div.one > div.br { border-bottom-right-radius: 1px; }
div.four > div.tl { border-top-left-radius: 4px; }
div.four > div.tr { border-top-right-radius: 4px; }
div.four > div.bl { border-bottom-left-radius: 4px; }
div.four > div.br { border-bottom-right-radius: 4px; }
</style>
</head>
<body>
<div class="one">
<div></div>
<div class="tl"></div>
<div class="tr"></div>
<div class="bl"></div>
<div class="br"></div>
<div class="tl tr"></div>
<div class="tl bl"></div>
<div class="tl br"></div>
<div class="tr bl"></div>
<div class="tr br"></div>
<div class="bl br"></div>
<div class="tl tr bl"></div>
<div class="tl tr br"></div>
<div class="tl bl br"></div>
<div class="tr bl br"></div>
<div class="tl tr bl br"></div>
</div>
<div class="four">
<div></div>
<div class="tl"></div>
<div class="tr"></div>
<div class="bl"></div>
<div class="br"></div>
<div class="tl tr"></div>
<div class="tl bl"></div>
<div class="tl br"></div>
<div class="tr bl"></div>
<div class="tr br"></div>
<div class="bl br"></div>
<div class="tl tr bl"></div>
<div class="tl tr br"></div>
<div class="tl bl br"></div>
<div class="tr bl br"></div>
<div class="tl tr bl br"></div>
</div>
</body>
</html>
|