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