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

Side by Side 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 old z-index stacking context test 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
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698