| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 div { | 5 div { |
| 6 width: 100px; | 6 width: 100px; |
| 7 height: 100px; | 7 height: 100px; |
| 8 background-color: yellow; | 8 background-color: yellow; |
| 9 } | 9 } |
| 10 | 10 |
| 11 #squashed { | 11 #squashed { |
| 12 background-color: blue; | 12 background-color: blue; |
| 13 z-index: 2; | 13 z-index: 2; |
| 14 position:relative; | 14 position:relative; |
| 15 } | 15 } |
| 16 | 16 |
| 17 #host { | 17 #host { |
| 18 position: absolute; | 18 position: absolute; |
| 19 background-color: green; | 19 background-color: green; |
| 20 top: 100px; | 20 top: 100px; |
| 21 z-index: 1; | 21 z-index: 1; |
| 22 -webkit-transform:translateZ(0); | 22 transform:translateZ(0); |
| 23 } | 23 } |
| 24 | 24 |
| 25 #background { | 25 #background { |
| 26 -webkit-transform:translateZ(0); | 26 transform:translateZ(0); |
| 27 z-index: 0; | 27 z-index: 0; |
| 28 position: absolute; | 28 position: absolute; |
| 29 top: 50px; | 29 top: 50px; |
| 30 } | 30 } |
| 31 </style> | 31 </style> |
| 32 <script> | 32 <script> |
| 33 if (window.testRunner) | 33 if (window.testRunner) |
| 34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
| 35 | 35 |
| 36 if (window.internals) | 36 if (window.internals) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 50 <div id='host'></div> | 50 <div id='host'></div> |
| 51 | 51 |
| 52 <p style='position: relative; top: 200px;' style='display:none'> | 52 <p style='position: relative; top: 200px;' style='display:none'> |
| 53 This tests that squashed layers' offset from renderer is updated properly. I
f not properly updated, | 53 This tests that squashed layers' offset from renderer is updated properly. I
f not properly updated, |
| 54 the two divs will appear to be aligned vertically in the pixel results, whil
e really the blue div | 54 the two divs will appear to be aligned vertically in the pixel results, whil
e really the blue div |
| 55 ('squashed') should be offset 100px left of the green ('host'). | 55 ('squashed') should be offset 100px left of the green ('host'). |
| 56 </p> | 56 </p> |
| 57 <pre id='console' style='position: relative; top: 200px;'></pre> | 57 <pre id='console' style='position: relative; top: 200px;'></pre> |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |