OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 @keyframes spin { |
| 4 100% { |
| 5 transform: rotate(360deg); |
| 6 } |
| 7 } |
| 8 </style> |
| 9 <div id="animated" style="animation:spin 1s;"> |
| 10 <div style="transform:translateZ(0);">Squashing</div> |
| 11 <div style="position:relative;">Squashed</div> |
| 12 </div> |
| 13 The purpose of this test is to verify elements with animated transform always cr
eate a stacking context. |
| 14 Also a DCHECK in the squashing code shouldn't fire in debug builds. |
| 15 <div id="result"></div> |
| 16 <script> |
| 17 if (window.testRunner) |
| 18 testRunner.dumpAsText(); |
| 19 |
| 20 var result = document.getElementById("result"); |
| 21 if (getComputedStyle(document.getElementById("animated")).zIndex == "0") |
| 22 result.innerText = "PASS"; |
| 23 else |
| 24 result.innerText = "FAIL"; |
| 25 </script> |
OLD | NEW |