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

Unified Diff: third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html

Issue 2035793007: Make sure z-index is adjusted after applying pending animations on elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html
diff --git a/third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html b/third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac5ecd8e531d93c9ef4b4a565398ff6e95d20398
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<style>
+@keyframes spin {
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+</style>
+<div id="animated" style="animation:spin 1s;">
+ <div style="transform:translateZ(0);">Squashing</div>
+ <div style="position:relative;">Squashed</div>
+</div>
+The purpose of this test is to verify elements with animated transform always create a stacking context.
+Also a DCHECK in the squashing code shouldn't fire in debug builds.
+<div id="result"></div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var result = document.getElementById("result");
+ if (getComputedStyle(document.getElementById("animated")).zIndex == "0")
+ result.innerText = "PASS";
+ else
+ result.innerText = "FAIL";
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698