| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Fixed position elements do establish stacking contexts with setting enabl
ed</title> | 2 <title>Fixed position elements do establish stacking contexts with setting enabl
ed</title> |
| 3 <style> | 3 <style> |
| 4 div { | 4 div { |
| 5 height: 100px; | 5 height: 100px; |
| 6 width: 100px; | 6 width: 100px; |
| 7 margin: 0; | 7 margin: 0; |
| 8 padding: 0; | 8 padding: 0; |
| 9 top: 0; | 9 top: 0; |
| 10 left: 0; | 10 left: 0; |
| 11 position:fixed; | 11 position:fixed; |
| 12 } | 12 } |
| 13 | 13 |
| 14 .green { | 14 .green { |
| 15 position:fixed; | 15 position:fixed; |
| 16 background: green; | 16 background: green; |
| 17 z-index: 1; | 17 z-index: 1; |
| 18 } | 18 } |
| 19 | 19 |
| 20 .red { | 20 .red { |
| 21 position:fixed; | 21 position:fixed; |
| 22 background: red; | 22 background: red; |
| 23 z-index: 2; | 23 z-index: 2; |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 <script> | |
| 27 if ("internals" in window) { | |
| 28 window.internals.settings.setFixedPositionCreatesStackingContext(true); | |
| 29 } else { | |
| 30 document.write("This test depends on the FixedPositionCreatesStackingContext
setting being true, so run in DumpRenderTree or manually enable it"); | |
| 31 } | |
| 32 </script> | |
| 33 <div class="green"></div> | 26 <div class="green"></div> |
| 34 <div class="container"> | 27 <div class="container"> |
| 35 <div class="green"></div> | 28 <div class="green"></div> |
| 36 <div class="red"></div> | 29 <div class="red"></div> |
| 37 </div> | 30 </div> |
| OLD | NEW |