OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <head> | |
3 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=102826</title> | |
4 <style type="text/css"> | |
5 #region1, #region2 { | |
6 position: absolute; | |
7 top: 0px; | |
8 left: 0px; | |
9 width: 100px; | |
10 height: 50px; | |
11 } | |
12 | |
13 #region1 { | |
14 left: 120px; | |
15 background-color: red; | |
16 /* We need a composited layer, to make the output | |
17 exactly the same as the test file. */ | |
18 -webkit-transform: translate3d(0,0,0); | |
19 } | |
20 | |
21 #region2 { | |
22 background-color: green; | |
23 } | |
24 | |
25 </style> | |
26 <script src="resources/repaint.js" type="text/javascript"></script> | |
27 <script> | |
28 function repaintTest() | |
29 { | |
30 // Using the same repaint behavior, so that we get the same repaint area. | |
31 document.getElementById('region1').style.backgroundColor = 'green'; | |
32 } | |
33 </script> | |
34 </head> | |
35 <body onload="runRepaintTest();"> | |
36 <div id="region1"></div> | |
37 <div id="region2"></div> | |
38 </body> | |
39 </html> | |
OLD | NEW |