@@ -19,6 +19,7 @@ Link Defaults: css-transforms-1 (property) transform
19
19
spec:css-writing-modes-4; type:dfn; text:end
20
20
spec:css2; type:value; for:float; text:none
21
21
spec:css-align-3; type:value; for:align-self; text:center
22
+ spec:css2; type:dfn; text:stacking context
22
23
</pre>
23
24
24
25
<style type="text/css">
@@ -446,6 +447,25 @@ Containing Blocks of Positioned Boxes</h3>
446
447
(i.e., that generated by "div1").
447
448
</div>
448
449
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.
449
469
450
470
<h2 id="coords">
451
471
Positioning Coordinates</h2>
0 commit comments