Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / fixed-position-stacking-context.html
blob253a6c333c828b608ef7f943d8af07684a281ed1
1 <!DOCTYPE html>
2 <title>Fixed position and stacking context</title>
3 <!--Fixed position elements do not establish stacking contexts by default according to the spec. However, some ports, including the Mac port, have changed this behavior and fixed position elements DO create a stacking context. The results are expected to differ on different ports depending on which behavior is being used.-->
4 <style>
5 div {
6 height: 100px;
7 width: 100px;
8 margin: 0;
9 padding: 0;
10 top: 0;
11 left: 0;
12 position:fixed;
15 .red {
16 position:fixed;
17 background: red;
18 z-index: 1;
21 .green {
22 position:fixed;
23 background: green;
24 z-index: 2;
26 </style>
27 <div class="red"></div>
28 <div class="container">
29 <div class="red"></div>
30 <div class="green"></div>
31 </div>