OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 direction: rtl; | 6 direction: rtl; |
7 margin: 0px; | 7 margin: 0px; |
8 } | 8 } |
9 | 9 |
10 #layer { | 10 #layer { |
11 position: absolute; | 11 position: absolute; |
12 top: 50px; | 12 top: 50px; |
13 right: 50px; | 13 right: 50px; |
14 width: 100px; | 14 width: 100px; |
15 height: 100px; | 15 height: 100px; |
16 background-color: red; | 16 background-color: red; |
17 } | 17 } |
18 | 18 |
19 #root { | 19 #root { |
20 width: 1000px; | 20 width: 1000px; |
21 height: 1000px; | 21 height: 1000px; |
22 -webkit-transform:translateZ(0); | 22 -webkit-transform:translateZ(0); |
23 } | 23 } |
24 </style> | 24 </style> |
25 <script> | 25 <script> |
26 function doTest() { | 26 function doTest() { |
27 if (window.testRunner) { | 27 if (window.testRunner) { |
28 testRunner.display(); | 28 testRunner.display(); |
29 testRunner.dumpAsText(true); | 29 testRunner.dumpAsTextWithPixelResults(); |
30 } | 30 } |
31 // This test passes if this element is repainted correctly, even | 31 // This test passes if this element is repainted correctly, even |
32 // on a page that is composited and has horizontal overflow. | 32 // on a page that is composited and has horizontal overflow. |
33 var elem = document.getElementById("layer"); | 33 var elem = document.getElementById("layer"); |
34 elem.style.backgroundColor = "green"; | 34 elem.style.backgroundColor = "green"; |
35 } | 35 } |
36 window.addEventListener('load', doTest, false); | 36 window.addEventListener('load', doTest, false); |
37 </script> | 37 </script> |
38 <body> | 38 <body> |
39 <div id="layer" class=""></div> | 39 <div id="layer" class=""></div> |
40 <div id="root"></div> | 40 <div id="root"></div> |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |