OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <!-- This checks the overlap test between render layers inside clipped | 3 <!-- This checks the overlap test between render layers inside clipped |
4 containers and other render layers when page scaling is used. See | 4 containers and other render layers when page scaling is used. See |
5 https://bugs.webkit.org/show_bug.cgi?id=76850 --> | 5 https://bugs.webkit.org/show_bug.cgi?id=76850 --> |
6 <script> | 6 <script> |
7 window.onload = function() { | 7 window.onload = function() { |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.dumpAsTextWithPixelResults(); | 9 testRunner.dumpAsTextWithPixelResults(); |
10 if (window.eventSender) | 10 if (window.eventSender) |
(...skipping 14 matching lines...) Expand all Loading... |
25 width: 100px; | 25 width: 100px; |
26 height: 100px; | 26 height: 100px; |
27 } | 27 } |
28 | 28 |
29 .positioned { | 29 .positioned { |
30 position: absolute; | 30 position: absolute; |
31 left: 400px; | 31 left: 400px; |
32 } | 32 } |
33 | 33 |
34 .transformed { | 34 .transformed { |
35 -webkit-transform: translateZ(0); | 35 transform: translateZ(0); |
36 } | 36 } |
37 | 37 |
38 .clip { | 38 .clip { |
39 overflow: hidden; | 39 overflow: hidden; |
40 } | 40 } |
41 | 41 |
42 .test { | 42 .test { |
43 z-index: 1; | 43 z-index: 1; |
44 background-color: green; | 44 background-color: green; |
45 } | 45 } |
46 | 46 |
47 .indicator { | 47 .indicator { |
48 background-color: red; | 48 background-color: red; |
49 } | 49 } |
50 </style> | 50 </style> |
51 | 51 |
52 <div class="positioned test box"></div> | 52 <div class="positioned test box"></div> |
53 | 53 |
54 <div class="positioned clip box"> | 54 <div class="positioned clip box"> |
55 <div class="transformed indicator box"></div> | 55 <div class="transformed indicator box"></div> |
56 </div> | 56 </div> |
57 </html> | 57 </html> |
OLD | NEW |