| 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 } |
| 26 |
| 27 #covered, #green { |
| 28 width: 85px; |
| 29 height: 85px; |
| 30 } |
| 31 |
| 32 #box, #covered { |
| 33 background-color: #ff8080; |
| 34 overflow: auto; |
| 35 } |
| 36 |
| 37 #green { |
| 38 position: relative; |
| 39 left: 100px; |
| 40 top: 100px; |
| 41 background-color: #00ff00; |
| 42 } |
| 43 |
| 44 </style> |
| 45 |
| 46 <div id="box"> |
| 47 <div id="green"></div> |
| 48 </div> |
| 49 <div id="covered"></div> |
| OLD | NEW |