Skip to content

Commit 33da8f9

Browse files
committed
make the terminology more correct by using CSS layout box associated with the element rather than just element
1 parent ded115c commit 33da8f9

2 files changed

Lines changed: 48 additions & 47 deletions

File tree

cssom-view/Overview.html

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

cssom-view/Overview.src.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -938,24 +938,25 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
938938

939939
<ol>
940940
<li><p>If the element is <span>the HTML <code>body</code> element</span>
941-
or does not have an associated CSS layout box return zero and terminate
941+
or does not have any associated CSS layout box return zero and terminate
942942
this algorithm.</p></li>
943943

944944
<li><p>If the <code>offsetParent</code> of the element is null return the
945-
y-coordinate of the top <span>border edge</span> of the element, relative
946-
to the <span>initial containing block</span> origin, and terminate this
945+
y-coordinate of the top <span>border edge</span> of the first
946+
CSS layout box associated with the element, relative to the
947+
<span>initial containing block</span> origin, and terminate this
947948
algorithm.</p></li>
948949

949950
<li>
950951
<p>Return the result of subtracting the y-coordinate of the top
951-
<span>padding edge</span> of the <code>offsetParent</code> of
952-
the element from the y-coordinate of the top <span>border edge</span>
953-
of the element, relative to the <span>initial containing block</span>
952+
<span>padding edge</span> of the first CSS layout box associated with
953+
the <code>offsetParent</code> of the element from the y-coordinate of
954+
the top <span>border edge</span> of the first CSS layout box associated
955+
with the element, relative to the <span>initial containing block</span>
954956
origin.</p>
955957

956-
<p>In case of an inline element that consists of multiple line boxes
957-
only the first in content order is to be considered for the purposes of
958-
the above algorithm.</p>
958+
<p class="note">An inline element that consists of multiple line boxes
959+
will only have its first CSS layout box considered.</p>
959960
</li>
960961
</ol>
961962

@@ -965,24 +966,22 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
965966

966967
<ol>
967968
<li><p>If the element is <span>the HTML <code>body</code>
968-
element</span> or does not have an associated CSS layout box return zero
969+
element</span> or does not have any associated CSS layout box return zero
969970
and terminate this algorithm.</p></li>
970971

971972
<li><p>If the <code>offsetParent</code> of the element is null return the
972-
x-coordinate of the left <span>border edge</span> of the element,
973-
relative to the <span>initial containing block</span> origin, and
974-
terminate this algorithm.</p></li>
973+
x-coordinate of the left <span>border edge</span> of the first
974+
CSS layout box associated with the element, relative to the
975+
<span>initial containing block</span> origin, and terminate this
976+
algorithm.</p></li>
975977

976978
<li>
977979
<p>Return the result of subtracting the x-coordinate of the left
978-
<span>padding edge</span> of the <code>offsetParent</code> of
979-
the element from the x-coordinate of the left <span>border edge</span>
980-
of the element, relative to the <span>initial containing block</span>
980+
<span>padding edge</span> of the first CSS layout box associated with
981+
the <code>offsetParent</code> of the element from the x-coordinate of
982+
the left <span>border edge</span> of the first CSS layout box associated
983+
with the element, relative to the <span>initial containing block</span>
981984
origin.</p>
982-
983-
<p>In case of an inline element that consists of multiple line boxes
984-
only the first in content order is to be considered for the purposes of
985-
the above algorithm.</p>
986985
</li>
987986
</ol>
988987

@@ -992,10 +991,11 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
992991
steps:</p>
993992

994993
<ol>
995-
<li><p>If the element does not have an associated CSS layout box return
994+
<li><p>If the element does not have any associated CSS layout box return
996995
zero and terminate this algorithm.</p></li>
997996

998-
<li><p>Return the <span>border edge</span> width of the element.</p></li>
997+
<li><p>Return the <span>border edge</span> width of the first
998+
CSS layout box associated with the element.</p></li>
999999
</ol>
10001000

10011001
<p>The
@@ -1004,11 +1004,11 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
10041004
steps:</p>
10051005

10061006
<ol>
1007-
<li><p>If the element does not have an associated CSS layout box return
1008-
zero and terminate this algorithm.</p></li>
1007+
<li><p>If the element does not have any associated CSS layout box return
1008+
zero and terminate this algorithm.</p></li>
10091009

1010-
<li><p>Return the <span>border edge</span> height of the
1011-
element.</p></li>
1010+
<li><p>Return the <span>border edge</span> height of the first
1011+
CSS layout box associated with the element.</p></li>
10121012
</ol>
10131013

10141014

0 commit comments

Comments
 (0)