@@ -104,30 +104,32 @@ with its top left corner at the canvas origin.
104104 given the descendant and |canvas|.
105105
106106 1.
107- : If |root| is an [=inline-level=] box
108- :: For each line box |root| is in,
109- [=paint a box in a line box=]
110- given |root|,
111- the line box,
112- and |canvas|.
113-
114- : Otherwise
115- :: First for |root|,
116- then for all its in-flow, non-positioned, [=block-level=] descendant boxes,
117- in [=tree order=] :
118-
119- 1. If the box is a [=replaced element=] ,
120- paint the replaced content into |canvas|, atomically.
121-
122- 2. Otherwise, for each line box of the box,
107+ <dl class=switch>
108+ : If |root| is an [=inline-level=] box
109+ :: For each line box |root| is in,
123110 [=paint a box in a line box=]
124- given the box ,
111+ given |root| ,
125112 the line box,
126113 and |canvas|.
127114
128- 3. If the UA uses [=in-band outlines=] ,
129- paint the outlines of the box
130- into |canvas|.
115+ : Otherwise
116+ :: First for |root|,
117+ then for all its in-flow, non-positioned, [=block-level=] descendant boxes,
118+ in [=tree order=] :
119+
120+ 1. If the box is a [=replaced element=] ,
121+ paint the replaced content into |canvas|, atomically.
122+
123+ 2. Otherwise, for each line box of the box,
124+ [=paint a box in a line box=]
125+ given the box,
126+ the line box,
127+ and |canvas|.
128+
129+ 3. If the UA uses [=in-band outlines=] ,
130+ paint the outlines of the box
131+ into |canvas|.
132+ </dl>
131133
132134 1. For each of |root|'s positioned descendants
133135 with ''z-index: auto'' or ''z-index: 0'' ,
0 commit comments