simon.fraser@apple.com | eac9079 | 2010-04-24 00:48:57 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | |
| 3 | <html> |
| 4 | <head> |
| 5 | <style type="text/css" media="screen"> |
| 6 | .box { |
| 7 | height: 100px; |
| 8 | width: 100px; |
| 9 | position: absolute; |
| 10 | z-index: 0; |
| 11 | } |
| 12 | |
| 13 | .parent { |
| 14 | border: 1px solid black; |
| 15 | } |
| 16 | |
| 17 | .child { |
| 18 | top: 10px; |
| 19 | left: 10px; |
| 20 | background-color: silver; |
| 21 | z-index: -1; |
| 22 | } |
| 23 | </style> |
| 24 | <script type="text/javascript" charset="utf-8"> |
rniwa@webkit.org | 1890413 | 2012-06-11 18:29:22 +0000 | [diff] [blame] | 25 | if (window.testRunner) |
| 26 | testRunner.dumpAsText(); |
simon.fraser@apple.com | eac9079 | 2010-04-24 00:48:57 +0000 | [diff] [blame] | 27 | |
| 28 | function doTest() { |
| 29 | document.getElementById('child').style.webkitTransform = 'translateZ(0)'; |
| 30 | } |
| 31 | window.addEventListener('load', doTest, false); |
| 32 | </script> |
| 33 | </head> |
| 34 | <body> |
| 35 | <p>This test should not assert in debug builds.</p> |
| 36 | <div class="parent box"> |
| 37 | <div id="child" class="child box"></div> |
| 38 | </div> |
| 39 | </body> |
| 40 | </html> |