You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The term <dfnid="layout-box">layout box</dfn> refers to either a <ahref="#css-layout-box">CSS layout box</a> or an <ahref="#svg-layout-box">SVG layout box</a>.
419
419
420
+
<p>The term <dfnid="transforms">transforms</dfn> refers to SVG transforms and CSS transforms. <ahref="#refsSVG">[SVG]</a><ahref="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a>
<p>All coordinates and dimensions for the APIs defined in this
@@ -966,8 +969,8 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
966
969
</ol>
967
970
<li><p>If <ahref="#caret-node">caret node</a> is a text entry widget that is a replaced element,
968
971
and that is in the document, return a <code><ahref="#domrect">DOMRect</a></code> object for the caret
969
-
in the widget as represented by the <ahref="#caret-offset">caret offset</a> value. The SVG transforms and CSS transforms that apply to the element and its ancestors are
in the widget as represented by the <ahref="#caret-offset">caret offset</a> value. The <ahref="#transforms">transforms</a> that apply to the element and its ancestors are
<li><p>If the element has no associated <ahref="#css-layout-box">CSS layout box</a> or if the <ahref="#css-layout-box">CSS layout box</a> is inline, return zero.
1175
1176
<li><p>Return the computed value of the 'border-top-width' property plus the height of any scrollbar rendered between the top <ahref="#padding-edge">padding
1176
-
edge</a> and the top <ahref="#border-edge">border edge</a>.
1177
+
edge</a> and the top <ahref="#border-edge">border edge</a>, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.
1177
1178
</ol>
1178
1179
1179
1180
<p>The <dfnid="dom-element-clientleft" title="dom-Element-clientLeft"><code>clientLeft</code></dfn> attribute must run these steps:
1180
1181
<ol>
1181
1182
<li><p>If the element has no associated <ahref="#css-layout-box">CSS layout box</a> or if the <ahref="#css-layout-box">CSS layout box</a> is inline, return zero.
1182
1183
<li><p>Return the computed value of the 'border-left-width' property plus the width of any scrollbar rendered between the left <ahref="#padding-edge">padding
1183
-
edge</a> and the left <ahref="#border-edge">border edge</a>.
1184
+
edge</a> and the left <ahref="#border-edge">border edge</a>, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.
1184
1185
</ol>
1185
1186
1186
1187
<p>The <dfnid="dom-element-clientwidth" title="dom-Element-clientWidth"><code>clientWidth</code></dfn> attribute must run these steps:
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the <ahref="#viewport">viewport</a> width excluding the size of a rendered scroll bar
1192
1193
(if any).
1193
1194
<li><p>Return the width of the <ahref="#padding-edge">padding edge</a> excluding the width of any rendered scrollbar between the <ahref="#padding-edge">padding edge</a> and the
1194
-
<ahref="#border-edge">border edge</a>.
1195
+
<ahref="#border-edge">border edge</a>, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.
1195
1196
</ol>
1196
1197
1197
1198
<p>The <dfnid="dom-element-clientheight" title="dom-Element-clientHeight"><code>clientHeight</code></dfn> attribute must run these steps:
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the <ahref="#viewport">viewport</a> height excluding the size of a rendered scroll
1203
1204
bar (if any).
1204
1205
<li><p>Return the height of the <ahref="#padding-edge">padding edge</a> excluding the height of any rendered scrollbar between the <ahref="#padding-edge">padding edge</a> and the
1205
-
<ahref="#border-edge">border edge</a>.
1206
+
<ahref="#border-edge">border edge</a>, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.
1206
1207
</ol>
1207
1208
1208
1209
<h3id="the-getclientrects()-and-getboundingclientrect()-methods"><spanclass="secno">7.1 </span>The <codetitle="">getClientRects()</code> and
<li><p>If the <codetitle="dom-HTMLElement-offsetParent"><ahref="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
1404
1405
y-coordinate of the top <ahref="#border-edge">border edge</a> of the first
1405
1406
<ahref="#css-layout-box">CSS layout box</a> associated with the element, relative to the
1406
-
<ahref="#initial-containing-block">initial containing block</a> origin, and terminate this
1407
+
<ahref="#initial-containing-block">initial containing block</a> origin, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors, and terminate this
1407
1408
algorithm.</li>
1408
1409
<li>
1409
1410
<p>Return the result of subtracting the y-coordinate of the top
1410
1411
<ahref="#padding-edge">padding edge</a> of the first <ahref="#css-layout-box">CSS layout box</a> associated with
1411
1412
the <codetitle="dom-HTMLElement-offsetParent"><ahref="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the y-coordinate of
1412
1413
the top <ahref="#border-edge">border edge</a> of the first <ahref="#css-layout-box">CSS layout box</a> associated
1413
1414
with the element, relative to the <ahref="#initial-containing-block">initial containing block</a>
1414
-
origin.</p>
1415
+
origin, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.</p>
1415
1416
<pclass="note">An inline element that consists of multiple line boxes
1416
1417
will only have its first <ahref="#css-layout-box">CSS layout box</a> considered.</p>
<li><p>If the <codetitle="dom-HTMLElement-offsetParent"><ahref="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element is null return the
1426
1427
x-coordinate of the left <ahref="#border-edge">border edge</a> of the first
1427
1428
<ahref="#css-layout-box">CSS layout box</a> associated with the element, relative to the
1428
-
<ahref="#initial-containing-block">initial containing block</a> origin, and terminate this
1429
+
<ahref="#initial-containing-block">initial containing block</a> origin, , ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors, and terminate this
1429
1430
algorithm.</li>
1430
1431
<li>
1431
1432
<p>Return the result of subtracting the x-coordinate of the left
1432
1433
<ahref="#padding-edge">padding edge</a> of the first <ahref="#css-layout-box">CSS layout box</a> associated with
1433
1434
the <codetitle="dom-HTMLElement-offsetParent"><ahref="#dom-htmlelement-offsetparent">offsetParent</a></code> of the element from the x-coordinate of
1434
1435
the left <ahref="#border-edge">border edge</a> of the first <ahref="#css-layout-box">CSS layout box</a> associated
1435
1436
with the element, relative to the <ahref="#initial-containing-block">initial containing block</a>
1436
-
origin.</p>
1437
+
origin, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.</p>
1437
1438
</li>
1438
1439
</ol>
1439
1440
1440
1441
<p>The <dfnid="dom-htmlelement-offsetwidth" title="dom-HTMLElement-offsetWidth"><code>offsetWidth</code></dfn> attribute must return the result of running these steps:</p>
1441
1442
<ol>
1442
1443
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> return zero and terminate this algorithm.</li>
1443
-
<li><p>Return the <ahref="#border-edge">border edge</a> width of the first <ahref="#css-layout-box">CSS layout box</a> associated with the element.</li>
1444
+
<li><p>Return the <ahref="#border-edge">border edge</a> width of the first <ahref="#css-layout-box">CSS layout box</a> associated with the element, ignoring any <ahref="#transforms">transforms</a>
1445
+
that apply to the element and its ancestors.</li>
1444
1446
</ol>
1445
1447
1446
1448
<p>The <dfnid="dom-htmlelement-offsetheight" title="dom-HTMLElement-offsetHeight"><code>offsetHeight</code></dfn> attribute must return the result of running these steps:</p>
1447
1449
<ol>
1448
1450
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> return zero and terminate this algorithm.</li>
1449
-
<li><p>Return the <ahref="#border-edge">border edge</a> height of the first <ahref="#css-layout-box">CSS layout box</a> associated with the element.</li>
1451
+
<li><p>Return the <ahref="#border-edge">border edge</a> height of the first <ahref="#css-layout-box">CSS layout box</a> associated with the element, ignoring any <ahref="#transforms">transforms</a>
1452
+
that apply to the element and its ancestors.</li>
1450
1453
</ol>
1451
1454
1452
1455
<h2id="extensions-to-the-range-interface"><spanclass="secno">9 </span>Extensions to the <codetitle="">Range</code> Interface</h2>
the horizontal dimension by the text advance width. The <ahref="#transforms">transforms</a> that apply to the ancestors are applied.
1480
1482
</ul>
1481
1483
1482
1484
<p>The <dfnid="dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect"><code>getBoundingClientRect()</code></dfn> method, when invoked, must return the result of the following
0 commit comments