Index: third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html |
diff --git a/third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html b/third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3eb7e23dde5cd343acbbfa09e077fc94af61873b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+ |
+<style> |
+@keyframes test { |
+ to { transform: rotate(360deg); } |
+} |
+</style> |
+ |
+<div id="target" style="animation: test 1s;"> |
+ <div style="transform: translateZ(0);"></div> |
+ <div style="position: relative;"></div> |
+</div> |
+ |
+<script> |
+test(() => { |
+ if (!window.internals) |
+ return; |
+ // Force style recalc |
+ getComputedStyle(target).zIndex; |
+ assert_true(internals.isStackingContext(target)); |
+}, "Don't crash when squashing layers in newly started CSS transform animations."); |
+</script> |