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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« 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