| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2 <script> |   2 <script> | 
|   3 if (window.internals) { |   3 if (window.internals) { | 
|   4     internals.settings.setCSSStickyPositionEnabled(true); |   4     internals.settings.setCSSStickyPositionEnabled(true); | 
|   5 } |   5 }            | 
|   6 </script> |   6 </script> | 
|   7 <style type="text/css"> |   7  | 
|   8 div { |   8 <html> | 
|   9     height: 100px; |   9 <head> | 
|  10     width: 100px; |  10 <style> | 
|  11 } |  11     body { | 
|  12 .sticky { |  12         margin: 0; | 
|  13     background-color: green; |  13     } | 
|  14     position: sticky; |  14     .container { | 
|  15 } |  15         width: 200px; | 
|  16 .red { |  16         height: 400px; | 
|  17     background-color: red; |  17         outline: 2px solid black; | 
|  18     margin-top: -100px; |  18     } | 
|  19 } |  19      | 
 |  20     .box { | 
 |  21         width: 200px; | 
 |  22         height: 200px; | 
 |  23     } | 
 |  24  | 
 |  25     .sticky { | 
 |  26         position: sticky; | 
 |  27     } | 
 |  28      | 
 |  29     .intermediate { | 
 |  30         position: absolute; | 
 |  31         z-index: 1; | 
 |  32         background-color: green | 
 |  33     } | 
 |  34      | 
 |  35     .child { | 
 |  36         position: relative; | 
 |  37         background-color: red; | 
 |  38         z-index: 2; | 
 |  39     } | 
 |  40      | 
 |  41     .indicator { | 
 |  42         position: absolute; | 
 |  43         top: 0; | 
 |  44         left: 0; | 
 |  45         background-color: blue; | 
 |  46         z-index: 0; | 
 |  47     } | 
|  20 </style> |  48 </style> | 
|  21 <!-- |  49 </head> | 
|  22 Tests that the sticky node will be popped out into a stacking context on top of 
    the node which follows it. You should |  50 <body> | 
|  23 see no red boxes as the green sticky div should pop on top of the red div placed
     under it. |  51     <div class="indicator box"></div> | 
|  24 --> |  52     <div class="container"> | 
|  25 <div class="sticky"></div> |  53         <div class="intermediate box"></div> | 
|  26 <div class="red"></div> |  54         <div class="sticky box"> | 
 |  55             <div class="child box"></div> | 
 |  56         </div> | 
 |  57     </div> | 
 |  58 </body> | 
 |  59 </html> | 
| OLD | NEW |