@@ -1137,28 +1137,30 @@ <h3 id=offset-attributes><span class=secno>6.1. </span>The <code
11371137 < ol >
11381138 < li >
11391139 < p > If the element is < a href ="#the-html-body-element "> the HTML
1140- < code > body</ code > element</ a > or does not have an associated CSS layout
1140+ < code > body</ code > element</ a > or does not have any associated CSS layout
11411141 box return zero and terminate this algorithm.
11421142
11431143 < li >
11441144 < p > If the < a
11451145 href ="#dom-htmlelement-offsetparent "> < code > offsetParent</ code > </ a > of
11461146 the element is null return the y-coordinate of the top < a
1147- href ="#border-edge "> border edge</ a > of the element, relative to the < a
1147+ href ="#border-edge "> border edge</ a > of the first CSS layout box
1148+ associated with the element, relative to the < a
11481149 href ="#initial-containing-block "> initial containing block</ a > origin,
11491150 and terminate this algorithm.
11501151
11511152 < li >
11521153 < p > Return the result of subtracting the y-coordinate of the top < a
1153- href ="#padding-edge "> padding edge</ a > of the < a
1154+ href ="#padding-edge "> padding edge</ a > of the first CSS layout box
1155+ associated with the < a
11541156 href ="#dom-htmlelement-offsetparent "> < code > offsetParent</ code > </ a > of
11551157 the element from the y-coordinate of the top < a
1156- href ="#border-edge "> border edge</ a > of the element, relative to the < a
1158+ href ="#border-edge "> border edge</ a > of the first CSS layout box
1159+ associated with the element, relative to the < a
11571160 href ="#initial-containing-block "> initial containing block</ a > origin.</ p >
11581161
1159- < p > In case of an inline element that consists of multiple line boxes only
1160- the first in content order is to be considered for the purposes of the
1161- above algorithm.</ p >
1162+ < p class =note > An inline element that consists of multiple line boxes will
1163+ only have its first CSS layout box considered.</ p >
11621164 </ ol >
11631165
11641166 < p > The < dfn id =dom-htmlelement-offsetleft > < code > offsetLeft</ code > </ dfn >
@@ -1167,54 +1169,53 @@ <h3 id=offset-attributes><span class=secno>6.1. </span>The <code
11671169 < ol >
11681170 < li >
11691171 < p > If the element is < a href ="#the-html-body-element "> the HTML
1170- < code > body</ code > element</ a > or does not have an associated CSS layout
1172+ < code > body</ code > element</ a > or does not have any associated CSS layout
11711173 box return zero and terminate this algorithm.
11721174
11731175 < li >
11741176 < p > If the < a
11751177 href ="#dom-htmlelement-offsetparent "> < code > offsetParent</ code > </ a > of
11761178 the element is null return the x-coordinate of the left < a
1177- href ="#border-edge "> border edge</ a > of the element, relative to the < a
1179+ href ="#border-edge "> border edge</ a > of the first CSS layout box
1180+ associated with the element, relative to the < a
11781181 href ="#initial-containing-block "> initial containing block</ a > origin,
11791182 and terminate this algorithm.
11801183
11811184 < li >
11821185 < p > Return the result of subtracting the x-coordinate of the left < a
1183- href ="#padding-edge "> padding edge</ a > of the < a
1186+ href ="#padding-edge "> padding edge</ a > of the first CSS layout box
1187+ associated with the < a
11841188 href ="#dom-htmlelement-offsetparent "> < code > offsetParent</ code > </ a > of
11851189 the element from the x-coordinate of the left < a
1186- href ="#border-edge "> border edge</ a > of the element, relative to the < a
1190+ href ="#border-edge "> border edge</ a > of the first CSS layout box
1191+ associated with the element, relative to the < a
11871192 href ="#initial-containing-block "> initial containing block</ a > origin.</ p >
1188-
1189- < p > In case of an inline element that consists of multiple line boxes only
1190- the first in content order is to be considered for the purposes of the
1191- above algorithm.</ p >
11921193 </ ol >
11931194
11941195 < p > The < dfn id =dom-htmlelement-offsetwidth > < code > offsetWidth</ code > </ dfn >
11951196 attribute < em class =ct > must</ em > return the result of running these steps:
11961197
11971198 < ol >
11981199 < li >
1199- < p > If the element does not have an associated CSS layout box return zero
1200+ < p > If the element does not have any associated CSS layout box return zero
12001201 and terminate this algorithm.
12011202
12021203 < li >
1203- < p > Return the < a href ="#border-edge "> border edge</ a > width of the
1204- element.
1204+ < p > Return the < a href ="#border-edge "> border edge</ a > width of the first
1205+ CSS layout box associated with the element.
12051206 </ ol >
12061207
12071208 < p > The < dfn id =dom-htmlelement-offsetheight > < code > offsetHeight</ code > </ dfn >
12081209 attribute < em class =ct > must</ em > return the result of running these steps:
12091210
12101211 < ol >
12111212 < li >
1212- < p > If the element does not have an associated CSS layout box return zero
1213+ < p > If the element does not have any associated CSS layout box return zero
12131214 and terminate this algorithm.
12141215
12151216 < li >
1216- < p > Return the < a href ="#border-edge "> border edge</ a > height of the
1217- element.
1217+ < p > Return the < a href ="#border-edge "> border edge</ a > height of the first
1218+ CSS layout box associated with the element.
12181219 </ ol >
12191220
12201221 < h2 id =extensions-to-the-range-interface > < span class =secno > 7.
0 commit comments