bdakin@apple.com | bdb5994 | 2012-10-25 00:19:35 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | |
| 3 | <html> |
| 4 | <head> |
| 5 | <style> |
| 6 | .box { |
| 7 | height: 100px; |
| 8 | width: 100px; |
bdakin@apple.com | 5699234 | 2012-11-05 23:31:58 +0000 | [diff] [blame] | 9 | background-image: -webkit-repeating-linear-gradient(red 10%, green 10%, green 30%); |
| 10 | background-attachment: fixed; /* At this time, background-attachment:fixed forces slow mode. */ |
bdakin@apple.com | bdb5994 | 2012-10-25 00:19:35 +0000 | [diff] [blame] | 11 | } |
| 12 | </style> |
| 13 | <script> |
| 14 | if (window.testRunner) |
| 15 | testRunner.dumpAsText(); |
| 16 | |
| 17 | function doTest() |
| 18 | { |
| 19 | if (window.internals) { |
| 20 | document.getElementById('layers').innerText = internals.layerTreeAsText(document, |
| 21 | internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES); |
| 22 | } |
| 23 | } |
| 24 | window.addEventListener('load', doTest, false); |
| 25 | </script> |
| 26 | </head> |
| 27 | <body> |
| 28 | <div class="box"> |
| 29 | </div> |
| 30 | <pre id="layers">Layer tree goes here</p> |
| 31 | </body> |
| 32 | </html> |