@@ -19,6 +19,7 @@ Link Defaults: css-transforms-1 (property) transform
1919spec:css-writing-modes-4; type:dfn; text:end
2020spec:css2; type:value; for:float; text:none
2121spec:css-align-3; type:value; for:align-self; text:center
22+ spec:css2; type:dfn; text:stacking context
2223</pre>
2324
2425<style type="text/css">
@@ -446,6 +447,25 @@ Containing Blocks of Positioned Boxes</h3>
446447 (i.e., that generated by "div1").
447448</div>
448449
450+ <h3 id="stacking">
451+ Painting Order and Stacking Contexts</h3>
452+
453+ The 'z-index' property applies to all [=positioned boxes=] .
454+ When 'z-index' is ''z-index/auto'' :
455+
456+ * [=fixed positioned|Fixed=] and [=sticky positioned|sticky=] [=positioned boxes=]
457+ nonetheless form a [=stacking context=] .
458+ * [=relative positioned|Relative=] and [=absolute positioned|absolute=] [=positioned boxes=]
459+ do not form a [=stacking context=] ,
460+ but are painted as if those elements did generated new [=stacking contexts=] ,
461+ except that their [=positioned=] descendants and any would-be child [=stacking contexts=]
462+ take part in the current [=stacking context=] .
463+
464+ See <a href="https://www.w3.org/TR/CSS2/visuren.html#layers">CSS2 § 9.9
465+ Layered presentation</a>
466+ and <a href="https://www.w3.org/TR/CSS2/zindex.html">Appendix E:
467+ Elaborate description of Stacking Contexts</a>
468+ for details about 'z-index' , [=stacking contexts=] , and painting order.
449469
450470<h2 id="coords">
451471Positioning Coordinates</h2>
0 commit comments