OLD | NEW |
(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> |
OLD | NEW |