blob: e785ff42eeec6a3ff77df0e43b7c7d0f19b24378 (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
.subPixelContainer {
left: 10.5px;
width: 100px;
height: 100px;
position: relative;
transform: translateZ(0);
}
.subPixelContainer > div {
position: absolute;
width: 50.5px;
right: 0px;
height: 50px;
}
.overflowHidden {
overflow: hidden;
}
.test {
transform: translateZ(0);
background-color: green;
}
.ref {
background-color: red;
}
</style>
</head>
<body>
<div>This tests that sub-pixel offsets in nested composited layers are properly accumulated. You should see no red.</div>
<div class="subPixelContainer">
<div class="ref"></div>
<div class="test"></div>
</div>
<div class="subPixelContainer overflowHidden">
<div class="ref"></div>
<div class="test"></div>
</div>
|