Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html

Issue 2047283002: Avoid touching z-index in StyleAdjuster by using an isStackingContext flag instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..334c13562f95c312ce323577c5e4862dbe5a597d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/transform-css-animation-squash-crash.html
@@ -0,0 +1,18 @@
+<!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(() => {}, "Don't crash when squashing layers in newly started CSS transform animations.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698