Skip to content

Commit 9f0315a

Browse files
committed
xref offset*
1 parent 42fa0b3 commit 9f0315a

2 files changed

Lines changed: 48 additions & 54 deletions

File tree

cssom-view/Overview.html

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,11 +1006,11 @@ <h3 id="client-attributes"><span class="secno">6.3 </span>The <code title="">cli
10061006
<h2 id="extensions-to-the-htmlelement-interface"><span class="secno">7 </span>Extensions to the <code title="">HTMLElement</code> Interface</h2>
10071007

10081008
<pre class="idl">partial interface <a class="external" href="http://www.whatwg.org/html/#htmlelement">HTMLElement</a> {
1009-
readonly attribute Element <a href="#dom-htmlelement-offsetparent">offsetParent</a>;
1010-
readonly attribute long <a href="#dom-htmlelement-offsettop">offsetTop</a>;
1011-
readonly attribute long <a href="#dom-htmlelement-offsetleft">offsetLeft</a>;
1012-
readonly attribute long <a href="#dom-htmlelement-offsetwidth">offsetWidth</a>;
1013-
readonly attribute long <a href="#dom-htmlelement-offsetheight">offsetHeight</a>;
1009+
readonly attribute Element <a href="#dom-htmlelement-offsetparent" title="dom-HTMLElement-offsetParent">offsetParent</a>;
1010+
readonly attribute long <a href="#dom-htmlelement-offsettop" title="dom-HTMLElement-offsetTop">offsetTop</a>;
1011+
readonly attribute long <a href="#dom-htmlelement-offsetleft" title="dom-HTMLElement-offsetLeft">offsetLeft</a>;
1012+
readonly attribute long <a href="#dom-htmlelement-offsetwidth" title="dom-HTMLElement-offsetWidth">offsetWidth</a>;
1013+
readonly attribute long <a href="#dom-htmlelement-offsetheight" title="dom-HTMLElement-offsetHeight">offsetHeight</a>;
10141014
};</pre>
10151015

10161016

@@ -1020,7 +1020,7 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
10201020
attributes</h3>
10211021

10221022
<p>The
1023-
<dfn id="dom-htmlelement-offsetparent"><code>offsetParent</code></dfn>
1023+
<dfn id="dom-htmlelement-offsetparent" title="dom-HTMLElement-offsetParent"><code>offsetParent</code></dfn>
10241024
attribute must return the result of running these
10251025
steps:</p>
10261026

@@ -1063,7 +1063,7 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
10631063
<li><p>Return null.</li>
10641064
</ol>
10651065

1066-
<p>The <dfn id="dom-htmlelement-offsettop"><code>offsetTop</code></dfn>
1066+
<p>The <dfn id="dom-htmlelement-offsettop" title="dom-HTMLElement-offsetTop"><code>offsetTop</code></dfn>
10671067
attribute must return the result of running these
10681068
steps:</p>
10691069

@@ -1072,7 +1072,7 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
10721072
or does not have any associated CSS layout box return zero and terminate
10731073
this algorithm.</li>
10741074

1075-
<li><p>If the <code><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
1075+
<li><p>If the <code title="dom-HTMLElement-offsetParent"><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
10761076
y-coordinate of the top <a href="#border-edge">border edge</a> of the first
10771077
CSS layout box associated with the element, relative to the
10781078
<a href="#initial-containing-block">initial containing block</a> origin, and terminate this
@@ -1081,7 +1081,7 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
10811081
<li>
10821082
<p>Return the result of subtracting the y-coordinate of the top
10831083
<a href="#padding-edge">padding edge</a> of the first CSS layout box associated with
1084-
the <code><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the y-coordinate of
1084+
the <code title="dom-HTMLElement-offsetParent"><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the y-coordinate of
10851085
the top <a href="#border-edge">border edge</a> of the first CSS layout box associated
10861086
with the element, relative to the <a href="#initial-containing-block">initial containing block</a>
10871087
origin.</p>
@@ -1091,16 +1091,15 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
10911091
</li>
10921092
</ol>
10931093

1094-
<p>The <dfn id="dom-htmlelement-offsetleft"><code>offsetLeft</code></dfn>
1095-
attribute must return the result of running these
1096-
steps:</p>
1094+
<p>The <dfn id="dom-htmlelement-offsetleft" title="dom-HTMLElement-offsetLeft"><code>offsetLeft</code></dfn>
1095+
attribute must return the result of running these steps:</p>
10971096

10981097
<ol>
10991098
<li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code>
11001099
element</a> or does not have any associated CSS layout box return zero
11011100
and terminate this algorithm.</li>
11021101

1103-
<li><p>If the <code><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
1102+
<li><p>If the <code title="dom-HTMLElement-offsetParent"><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
11041103
x-coordinate of the left <a href="#border-edge">border edge</a> of the first
11051104
CSS layout box associated with the element, relative to the
11061105
<a href="#initial-containing-block">initial containing block</a> origin, and terminate this
@@ -1109,17 +1108,16 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
11091108
<li>
11101109
<p>Return the result of subtracting the x-coordinate of the left
11111110
<a href="#padding-edge">padding edge</a> of the first CSS layout box associated with
1112-
the <code><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the x-coordinate of
1111+
the <code title="dom-HTMLElement-offsetParent"><a href="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the x-coordinate of
11131112
the left <a href="#border-edge">border edge</a> of the first CSS layout box associated
11141113
with the element, relative to the <a href="#initial-containing-block">initial containing block</a>
11151114
origin.</p>
11161115
</li>
11171116
</ol>
11181117

11191118
<p>The
1120-
<dfn id="dom-htmlelement-offsetwidth"><code>offsetWidth</code></dfn>
1121-
attribute must return the result of running these
1122-
steps:</p>
1119+
<dfn id="dom-htmlelement-offsetwidth" title="dom-HTMLElement-offsetWidth"><code>offsetWidth</code></dfn>
1120+
attribute must return the result of running these steps:</p>
11231121

11241122
<ol>
11251123
<li><p>If the element does not have any associated CSS layout box return
@@ -1130,9 +1128,8 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
11301128
</ol>
11311129

11321130
<p>The
1133-
<dfn id="dom-htmlelement-offsetheight"><code>offsetHeight</code></dfn>
1134-
attribute must return the result of running these
1135-
steps:</p>
1131+
<dfn id="dom-htmlelement-offsetheight" title="dom-HTMLElement-offsetHeight"><code>offsetHeight</code></dfn>
1132+
attribute must return the result of running these steps:</p>
11361133

11371134
<ol>
11381135
<li><p>If the element does not have any associated CSS layout box return
@@ -1146,15 +1143,15 @@ <h3 id="offset-attributes"><span class="secno">7.1 </span>The <code title="">off
11461143
<h2 id="extensions-to-the-range-interface"><span class="secno">8 </span>Extensions to the <code title="">Range</code> Interface</h2>
11471144

11481145
<pre class="idl">partial interface <a class="external" href="http://html5.org/specs/dom-range.html#range">Range</a> {
1149-
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-range-getclientrects" title="dom-range-getclientrects">getClientRects</a>();
1150-
<a href="#clientrect">ClientRect</a> <a href="#dom-range-getboundingclientrect" title="dom-range-getboundingclientrect">getBoundingClientRect</a>();
1146+
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-range-getclientrects" title="dom-Range-getClientRects">getClientRects</a>();
1147+
<a href="#clientrect">ClientRect</a> <a href="#dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect">getBoundingClientRect</a>();
11511148
};</pre>
11521149

11531150
<p>The objects the methods described below return must
11541151
be static.</p>
11551152

11561153
<p>The
1157-
<dfn id="dom-range-getclientrects" title="dom-range-getclientrects"><code>getClientRects()</code></dfn>
1154+
<dfn id="dom-range-getclientrects" title="dom-Range-getClientRects"><code>getClientRects()</code></dfn>
11581155
method, when invoked, must return an empty
11591156
<code><a href="#clientrectlist">ClientRectList</a></code> object if the range is not in the document and
11601157
otherwise a <code><a href="#clientrectlist">ClientRectList</a></code> object containing a list of
@@ -1176,13 +1173,13 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">8 </span>Extensio
11761173
</ul>
11771174

11781175
<p>The
1179-
<dfn id="dom-range-getboundingclientrect" title="dom-range-getboundingclientrect"><code>getBoundingClientRect()</code></dfn>
1176+
<dfn id="dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect"><code>getBoundingClientRect()</code></dfn>
11801177
method, when invoked, must return the result of the
11811178
following algorithm:</p>
11821179

11831180
<ol>
11841181
<li><p>Let <var>list</var> be the result of invoking
1185-
<code title="dom-range-getclientrects"><a href="#dom-range-getclientrects">getClientRects()</a></code> on the
1182+
<code title="dom-Range-getClientRects"><a href="#dom-range-getclientrects">getClientRects()</a></code> on the
11861183
same range this method was invoked on.</li>
11871184

11881185
<li><p>If <var>list</var> is empty return a

cssom-view/Overview.src.html

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -977,11 +977,11 @@ <h3 id="client-attributes">The <code title>clientTop</code>,
977977
<h2 id="extensions-to-the-htmlelement-interface">Extensions to the <code title>HTMLElement</code> Interface</h2>
978978

979979
<pre class="idl">partial interface <span data-anolis-spec=html>HTMLElement</span> {
980-
readonly attribute Element <span>offsetParent</span>;
981-
readonly attribute long <span>offsetTop</span>;
982-
readonly attribute long <span>offsetLeft</span>;
983-
readonly attribute long <span>offsetWidth</span>;
984-
readonly attribute long <span>offsetHeight</span>;
980+
readonly attribute Element <span title=dom-HTMLElement-offsetParent>offsetParent</span>;
981+
readonly attribute long <span title=dom-HTMLElement-offsetTop>offsetTop</span>;
982+
readonly attribute long <span title=dom-HTMLElement-offsetLeft>offsetLeft</span>;
983+
readonly attribute long <span title=dom-HTMLElement-offsetWidth>offsetWidth</span>;
984+
readonly attribute long <span title=dom-HTMLElement-offsetHeight>offsetHeight</span>;
985985
};</pre>
986986

987987

@@ -991,7 +991,7 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
991991
attributes</h3>
992992

993993
<p>The
994-
<dfn id="dom-htmlelement-offsetparent"><code>offsetParent</code></dfn>
994+
<dfn title=dom-HTMLElement-offsetParent><code>offsetParent</code></dfn>
995995
attribute must return the result of running these
996996
steps:</p>
997997

@@ -1034,7 +1034,7 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
10341034
<li><p>Return null.</p></li>
10351035
</ol>
10361036

1037-
<p>The <dfn id="dom-htmlelement-offsettop"><code>offsetTop</code></dfn>
1037+
<p>The <dfn title=dom-HTMLElement-offsetTop><code>offsetTop</code></dfn>
10381038
attribute must return the result of running these
10391039
steps:</p>
10401040

@@ -1043,7 +1043,7 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
10431043
or does not have any associated CSS layout box return zero and terminate
10441044
this algorithm.</p></li>
10451045

1046-
<li><p>If the <code>offsetParent</code> of the element is null return the
1046+
<li><p>If the <code title=dom-HTMLElement-offsetParent>offsetParent</code> of the element is null return the
10471047
y-coordinate of the top <span>border edge</span> of the first
10481048
CSS layout box associated with the element, relative to the
10491049
<span>initial containing block</span> origin, and terminate this
@@ -1052,7 +1052,7 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
10521052
<li>
10531053
<p>Return the result of subtracting the y-coordinate of the top
10541054
<span>padding edge</span> of the first CSS layout box associated with
1055-
the <code>offsetParent</code> of the element from the y-coordinate of
1055+
the <code title=dom-HTMLElement-offsetParent>offsetParent</code> of the element from the y-coordinate of
10561056
the top <span>border edge</span> of the first CSS layout box associated
10571057
with the element, relative to the <span>initial containing block</span>
10581058
origin.</p>
@@ -1062,16 +1062,15 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
10621062
</li>
10631063
</ol>
10641064

1065-
<p>The <dfn id="dom-htmlelement-offsetleft"><code>offsetLeft</code></dfn>
1066-
attribute must return the result of running these
1067-
steps:</p>
1065+
<p>The <dfn title=dom-HTMLElement-offsetLeft><code>offsetLeft</code></dfn>
1066+
attribute must return the result of running these steps:</p>
10681067

10691068
<ol>
10701069
<li><p>If the element is <span>the HTML <code>body</code>
10711070
element</span> or does not have any associated CSS layout box return zero
10721071
and terminate this algorithm.</p></li>
10731072

1074-
<li><p>If the <code>offsetParent</code> of the element is null return the
1073+
<li><p>If the <code title=dom-HTMLElement-offsetParent>offsetParent</code> of the element is null return the
10751074
x-coordinate of the left <span>border edge</span> of the first
10761075
CSS layout box associated with the element, relative to the
10771076
<span>initial containing block</span> origin, and terminate this
@@ -1080,17 +1079,16 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
10801079
<li>
10811080
<p>Return the result of subtracting the x-coordinate of the left
10821081
<span>padding edge</span> of the first CSS layout box associated with
1083-
the <code>offsetParent</code> of the element from the x-coordinate of
1082+
the <code title=dom-HTMLElement-offsetParent>offsetParent</code> of the element from the x-coordinate of
10841083
the left <span>border edge</span> of the first CSS layout box associated
10851084
with the element, relative to the <span>initial containing block</span>
10861085
origin.</p>
10871086
</li>
10881087
</ol>
10891088

10901089
<p>The
1091-
<dfn id="dom-htmlelement-offsetwidth"><code>offsetWidth</code></dfn>
1092-
attribute must return the result of running these
1093-
steps:</p>
1090+
<dfn title=dom-HTMLElement-offsetWidth><code>offsetWidth</code></dfn>
1091+
attribute must return the result of running these steps:</p>
10941092

10951093
<ol>
10961094
<li><p>If the element does not have any associated CSS layout box return
@@ -1101,9 +1099,8 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
11011099
</ol>
11021100

11031101
<p>The
1104-
<dfn id="dom-htmlelement-offsetheight"><code>offsetHeight</code></dfn>
1105-
attribute must return the result of running these
1106-
steps:</p>
1102+
<dfn title=dom-HTMLElement-offsetHeight><code>offsetHeight</code></dfn>
1103+
attribute must return the result of running these steps:</p>
11071104

11081105
<ol>
11091106
<li><p>If the element does not have any associated CSS layout box return
@@ -1117,15 +1114,15 @@ <h3 id="offset-attributes">The <code title>offsetParent</code>,
11171114
<h2 id="extensions-to-the-range-interface">Extensions to the <code title>Range</code> Interface</h2>
11181115

11191116
<pre class="idl">partial interface <span data-anolis-spec=domrange>Range</span> {
1120-
<span>ClientRectList</span> <span title="dom-range-getclientrects">getClientRects</span>();
1121-
<span>ClientRect</span> <span title="dom-range-getboundingclientrect">getBoundingClientRect</span>();
1117+
<span>ClientRectList</span> <span title="dom-Range-getClientRects">getClientRects</span>();
1118+
<span>ClientRect</span> <span title="dom-Range-getBoundingClientRect">getBoundingClientRect</span>();
11221119
};</pre>
11231120

11241121
<p>The objects the methods described below return must
11251122
be static.</p>
11261123

11271124
<p>The
1128-
<dfn id="dom-range-getclientrects" title="dom-range-getclientrects"><code>getClientRects()</code></dfn>
1125+
<dfn title=dom-Range-getClientRects><code>getClientRects()</code></dfn>
11291126
method, when invoked, must return an empty
11301127
<code>ClientRectList</code> object if the range is not in the document and
11311128
otherwise a <code>ClientRectList</code> object containing a list of
@@ -1147,21 +1144,21 @@ <h2 id="extensions-to-the-range-interface">Extensions to the <code title>Range</
11471144
</ul>
11481145

11491146
<p>The
1150-
<dfn id="dom-range-getboundingclientrect" title="dom-range-getboundingclientrect"><code>getBoundingClientRect()</code></dfn>
1147+
<dfn title=dom-Range-getBoundingClientRect><code>getBoundingClientRect()</code></dfn>
11511148
method, when invoked, must return the result of the
11521149
following algorithm:</p>
11531150

11541151
<ol>
11551152
<li><p>Let <var>list</var> be the result of invoking
1156-
<code title="dom-range-getclientrects">getClientRects()</code> on the
1153+
<code title=dom-Range-getClientRects>getClientRects()</code> on the
11571154
same range this method was invoked on.</p></li>
11581155

11591156
<li><p>If <var>list</var> is empty return a
11601157
<code>ClientRect</code> object whose
1161-
<code title="dom-ClientRect-top">top</code>,
1162-
<code title="dom-ClientRect-right">right</code>,
1163-
<code title="dom-ClientRect-bottom">bottom</code> and
1164-
<code title="dom-ClientRect-left">left</code> members are zero.</p></li>
1158+
<code title=dom-ClientRect-top>top</code>,
1159+
<code title=dom-ClientRect-right>right</code>,
1160+
<code title=dom-ClientRect-bottom>bottom</code> and
1161+
<code title=dom-ClientRect-left>left</code> members are zero.</p></li>
11651162

11661163
<li><p>Otherwise, return a <code>ClientRect</code> object describing the
11671164
smallest rectangle that includes the first rectangle in <var>list</var>

0 commit comments

Comments
 (0)