Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <style> | |
|
pdr.
2014/08/28 20:21:13
Nits: Add <!DOCTYPE html>, remove extra space betw
chrishtr
2014/08/28 20:27:56
Done.
| |
| 2 .spinner { | |
| 3 backface-visibility: hidden; | |
| 4 background-color: blue; | |
| 5 height: 100px; | |
| 6 width: 100px; | |
| 7 } | |
| 8 | |
| 9 .transparent { | |
| 10 opacity: 0; | |
| 11 } | |
| 12 | |
| 13 #container { | |
| 14 -webkit-perspective: 1px; | |
| 15 background-color: red; | |
| 16 overflow: hidden; | |
| 17 } | |
| 18 </style> | |
| 19 <script src="../fast/repaint/resources/text-based-repaint.js"></script> | |
| 20 <div id="container"> | |
| 21 <div class="spinner"></div> | |
| 22 <br> | |
| 23 <button onclick="repaintTest()">Close</button> | |
| 24 </div> | |
| 25 <script> | |
| 26 // Tests that transitioning the container div from "composited but paints into ancestor" into "composited into own backing" | |
| 27 // for intrinsic reasons (in this case due to opacity change) correctly invalida tes the old paint invalidation backing (document) | |
| 28 // before the change. | |
| 29 function repaintTest() { | |
| 30 document.getElementById('container').classList.add('transparent'); | |
| 31 } | |
| 32 if (window.testRunner) | |
| 33 runRepaintTest(); | |
| 34 </script> | |
| OLD | NEW |