Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <html> | |
| 4 <head> | |
| 5 <style> | |
| 6 .set { | |
| 7 position: absolute; | |
| 8 top: 8px; | |
| 9 } | |
| 10 .box { | |
| 11 height: 100px; | |
| 12 width: 100px; | |
| 13 background-color: blue; | |
| 14 } | |
| 15 | |
| 16 .hidden { | |
| 17 visibility: hidden; | |
| 18 } | |
| 19 | |
| 20 .container.hidden { | |
| 21 outline: 4px solid red; | |
| 22 } | |
| 23 | |
| 24 .visible { | |
| 25 visibility: visible; | |
| 26 } | |
| 27 .should-be-hidden { | |
| 28 background-color: red !important; | |
| 29 } | |
| 30 .should-be-visible { | |
| 31 background-color: green !important; | |
| 32 } | |
| 33 .composited { | |
| 34 -webkit-transform: translateZ(1px); | |
| 35 } | |
| 36 | |
| 37 .visible-indicator { | |
| 38 background-color: green; | |
| 39 } | |
| 40 | |
| 41 .hidden-indicator { | |
| 42 background-color: red; | |
| 43 } | |
| 44 </style> | |
| 45 <script> | |
| 46 if (window.testRunner) | |
| 47 testRunner.waitUntilDone(); | |
| 48 requestAnimationFrame(function() { | |
| 49 requestAnimationFrame(function() { | |
| 50 document.getElementById('target').classList.add('visible'); | |
| 51 setTimeout(function() { | |
| 52 if (window.testRunner) | |
| 53 testRunner.notifyDone(); | |
| 54 }); | |
| 55 }); | |
| 56 }); | |
| 57 </script> | |
| 58 </head> | |
| 59 <body> | |
| 60 <div class="set"> | |
|
chrishtr
2014/03/03 21:40:32
Same comments here as in the other HTML file.
abarth-chromium
2014/03/03 22:01:31
ok
| |
| 61 <div class="hidden-indicator box"></div> | |
| 62 <div class="visible-indicator box"></div> | |
| 63 <div class="hidden-indicator box"></div> | |
| 64 </div> | |
| 65 | |
| 66 <div class="set"> | |
| 67 <div class="hidden container composited"> | |
| 68 <div class="visible box should-be-visible"></div> | |
| 69 </div> | |
| 70 | |
| 71 <div class="hidden container composited"> | |
| 72 <div class="box should-be-hidden"></div> | |
| 73 </div> | |
| 74 | |
| 75 <div class="hidden container composited"> | |
| 76 <div id="target" class="box should-be-visible"></div> | |
| 77 </div> | |
| 78 </div> | |
| 79 </body> | |
| 80 </html> | |
| OLD | NEW |