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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-z-index-inherit.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 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 #auto {
7 z-index: auto;
8 opacity: 0.9;
9 }
10
11 #one {
12 z-index: 1;
13 }
14
15 #inheritAuto, #inheritOne {
16 position: relative;
17 z-index: inherit;
18 }
19 </style>
20
21 <div id="auto">
22 <div id="inheritAuto"></div>
23 </div>
24
25 <div id="one">
26 <div id="inheritOne"></div>
27 </div>
28
29 <script>
30 test(() => {
31 assert_equals(getComputedStyle(inheritAuto).zIndex, 'auto');
32 assert_equals(getComputedStyle(inheritOne).zIndex, '1');
33 }, 'z-index should inherit the computed value');
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698