@@ -236,6 +236,13 @@ Layout Within Line Boxes</h3>
236236 [=margins=] , [=padding=] , [=borders=] , and a 'line-height' ,
237237 and thus influence these calculations just like boxes with content.
238238
239+ <h3 id="paint-order">
240+ Painting Order</h3>
241+
242+ Except as specified for [=positioned boxes=] (see [[!CSS-POSITION-3]] )
243+ [=inline-level boxes=] are painted in [=document order=] ;
244+ the 'z-index' property does not generally apply.
245+
239246<h2 id="css-metrics">
240247Baselines and Alignment Metrics</h2>
241248
@@ -828,15 +835,6 @@ Line Spacing: the 'line-height' property</h3>
828835 for instance taking external leading metrics into account
829836 only in the ''line-height/normal'' case.
830837
831- Although margins, borders, and padding of non-replaced elements
832- do not enter into the line box calculation,
833- they are still rendered around inline boxes.
834- This means that if the height specified by 'line-height'
835- is less than the content height of contained boxes,
836- backgrounds and colors of padding and borders may "bleed" into adjoining line boxes.
837- User agents should render the boxes in document order.
838- This will cause the borders on subsequent lines
839- to paint over the borders and text of previous lines.
840838
841839 Note: CSS 2 does not define what the content area of an inline box is
842840 (see [[#line-fill]] )
@@ -919,6 +917,15 @@ Line Sizing Containment: the 'line-sizing' property</h3>
919917 In the latter case, an individual inline could say "pay attention to me"
920918 or "don't pay attention to me".
921919
920+ Note: Although margins, borders, and padding of [=inline boxes=]
921+ with ''line-sizing: legacy''
922+ do not enter into the line box calculation,
923+ they are still rendered around these boxes.
924+ This means that if the size specified by 'line-height'
925+ is less than the size of the box,
926+ backgrounds and borders can “bleed” into adjoining line boxes,
927+ potentially obscuring earlier content.
928+
922929<h3 id="leading-trim-property">
923930Half-Leading Control</h3>
924931
0 commit comments