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