| <!doctype html> |
| <head> |
| <title>Test for https://bugs.webkit.org/show_bug.cgi?id=102826</title> |
| <style type="text/css"> |
| #region1, #region2 { |
| position: absolute; |
| top: 0px; |
| left: 0px; |
| width: 100px; |
| height: 50px; |
| z-index: 1; /*creates Stacking Context*/ |
| } |
| |
| #region1 { |
| left: 120px; |
| background-color: red; |
| /* We need a composited layer, to make the output |
| exactly the same as the test file. */ |
| -webkit-transform: translate3d(0,0,0); |
| } |
| |
| #region2 { |
| background-color: green; |
| } |
| |
| </style> |
| <script src="resources/repaint.js" type="text/javascript"></script> |
| <script> |
| function repaintTest() |
| { |
| // Using the same repaint behavior, so that we get the same repaint area. |
| document.getElementById('region1').style.backgroundColor = 'green'; |
| } |
| </script> |
| </head> |
| <body onload="runRepaintTest();"> |
| <div id="region1">1</div> |
| <div id="region2"></div> |
| </body> |
| </html> |