OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Tests that a change from the worker produces a visual update. |
| 4 --> |
| 5 <script> |
| 6 window.jsTestIsAsync = true; |
| 7 </script> |
| 8 |
| 9 <script> |
| 10 onload = function() { |
| 11 var box = document.getElementById('box'); |
| 12 box.style.transform = 'translate(0, 100px)'; |
| 13 box.style.opacity = 0.5; |
| 14 box.scrollLeft = 100; |
| 15 box.scrollTop = 100; |
| 16 if (window.testRunner) |
| 17 testRunner.notifyDone(); |
| 18 } |
| 19 </script> |
| 20 |
| 21 <style> |
| 22 #box { |
| 23 width: 100px; |
| 24 height: 100px; |
| 25 /* A composited DIV background is clipped differently from a non-composited |
| 26 one. This causes the box to be composited in both cases |
| 27 TODO(majidvp): fix this mismatch between CC and blink rendering |
| 28 */ |
| 29 backface-visibility: hidden; |
| 30 } |
| 31 |
| 32 #covered, #green { |
| 33 width: 85px; |
| 34 height: 85px; |
| 35 } |
| 36 |
| 37 #box, #covered { |
| 38 background-color: #ff8080; |
| 39 overflow: auto; |
| 40 } |
| 41 |
| 42 #green { |
| 43 position: relative; |
| 44 left: 100px; |
| 45 top: 100px; |
| 46 background-color: #00ff00; |
| 47 } |
| 48 |
| 49 </style> |
| 50 |
| 51 <div id="box"> |
| 52 <div id="green"></div> |
| 53 </div> |
| 54 <div id="covered"></div> |
OLD | NEW |