OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 |
| 5 <style> |
| 6 @keyframes test { |
| 7 to { transform: rotate(360deg); } |
| 8 } |
| 9 </style> |
| 10 |
| 11 <div id="target" style="animation: test 1s;"> |
| 12 <div style="transform: translateZ(0);"></div> |
| 13 <div style="position: relative;"></div> |
| 14 </div> |
| 15 |
| 16 <script> |
| 17 test(() => { |
| 18 if (!window.internals) |
| 19 return; |
| 20 // Force style recalc |
| 21 getComputedStyle(target).zIndex; |
| 22 assert_true(internals.isStackingContext(target)); |
| 23 }, "Don't crash when squashing layers in newly started CSS transform animations.
"); |
| 24 </script> |
OLD | NEW |