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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-zIndex-non-auto.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 <div style="z-index: 20" id='nonPositionedDiv'></div>
6 <div style="z-index: 20; position: absolute" id='positionedDiv'></div>
7
8 <script>
9 test(() => {
10 assert_equals(getComputedStyle(nonPositionedDiv).zIndex, '20', 'Computed sty le');
11 assert_equals(nonPositionedDiv.style.zIndex, '20', 'Inline style');
12 }, 'z-index on non-positioned div');
13
14 test(() => {
15 assert_equals(getComputedStyle(positionedDiv).zIndex, '20', 'Computed style' );
16 assert_equals(positionedDiv.style.zIndex, '20', 'Inline style');
17 }, 'z-index on positioned div');
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698