| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .composited { | 5 .composited { |
| 6 -webkit-transform: translatez(0); | 6 -webkit-transform: translatez(0); |
| 7 } | 7 } |
| 8 | 8 |
| 9 .box { | 9 .box { |
| 10 position: absolute; | 10 position: absolute; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 top: 380px; | 36 top: 380px; |
| 37 left: 10px; | 37 left: 10px; |
| 38 width: 150px; | 38 width: 150px; |
| 39 height: 150px; | 39 height: 150px; |
| 40 } | 40 } |
| 41 | 41 |
| 42 </style> | 42 </style> |
| 43 | 43 |
| 44 <script type="text/javascript"> | 44 <script type="text/javascript"> |
| 45 if (window.internals) { | 45 if (window.internals) { |
| 46 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled
(true); | 46 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 47 } | 47 } |
| 48 | 48 |
| 49 if (window.testRunner) { | 49 if (window.testRunner) { |
| 50 testRunner.dumpAsText(); | 50 testRunner.dumpAsText(); |
| 51 | 51 |
| 52 window.addEventListener("load", function() { | 52 window.addEventListener("load", function() { |
| 53 document.getElementById("layertree").innerText = window.internals.layerT
reeAsText(document); | 53 document.getElementById("layertree").innerText = window.internals.layerT
reeAsText(document); |
| 54 }, false); | 54 }, false); |
| 55 } | 55 } |
| 56 </script> | 56 </script> |
| 57 | 57 |
| 58 </head> | 58 </head> |
| 59 <body style="height: 4000px;"> | 59 <body style="height: 4000px;"> |
| 60 <div>In all iframes, the green fixed-position element should not be composited
. | 60 <div>In all iframes, the green fixed-position element should not be composited
. |
| 61 <pre id="layertree"></pre> | 61 <pre id="layertree"></pre> |
| 62 </div> | 62 </div> |
| 63 <div class="composited box"> Composited box underneath iframe. </div> | 63 <div class="composited box"> Composited box underneath iframe. </div> |
| 64 <iframe id="iframe1" src="resources/fixed-position-nonscrollable-body.html"></
iframe> | 64 <iframe id="iframe1" src="resources/fixed-position-nonscrollable-body.html"></
iframe> |
| 65 <iframe id="iframe2" class="composited" src="resources/fixed-position-nonscrol
lable-body.html"></iframe> | 65 <iframe id="iframe2" class="composited" src="resources/fixed-position-nonscrol
lable-body.html"></iframe> |
| 66 <iframe id="iframe3" src="resources/fixed-position-nonscrollable-body.html"></
iframe> | 66 <iframe id="iframe3" src="resources/fixed-position-nonscrollable-body.html"></
iframe> |
| 67 </body> | 67 </body> |
| 68 </html> | 68 </html> |
| OLD | NEW |