Skip to content

Commit ae87d5e

Browse files
author
Simon Pieters
committed
1 parent 2682c1e commit ae87d5e

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

cssom-view/Overview.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,8 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
966966
</ol>
967967
<li><p>If <a href="#caret-node">caret node</a> is a text entry widget that is a replaced element,
968968
and that is in the document, return a <code><a href="#clientrect">ClientRect</a></code> object for the caret
969-
in the widget as represented by the <a href="#caret-offset">caret offset</a> value.
969+
in the widget as represented by the <a href="#caret-offset">caret offset</a> value. The SVG transforms and CSS transforms that apply to the element and its ancestors are
970+
applied. <a href="#refsSVG">[SVG]</a> <a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a>
970971
<li><p>Return null.
971972
</ol>
972973

@@ -1001,14 +1002,16 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
10011002
<li><p>If the element has an associated <a href="#svg-layout-box">SVG layout box</a> return a
10021003
<code><a href="#clientrectlist">ClientRectList</a></code> object containing a single
10031004
<code><a href="#clientrect">ClientRect</a></code> object that describes the bounding box of the
1004-
element as defined by the SVG specification.
1005-
<a href="#refsSVG">[SVG]</a></li>
1005+
element as defined by the SVG specification, applying the SVG transforms and CSS transforms that apply to the element and its ancestors.
1006+
<a href="#refsSVG">[SVG]</a> <a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a></li>
10061007
<li>
10071008
<p>Return a <code><a href="#clientrectlist">ClientRectList</a></code> object containing a list of
10081009
<code><a href="#clientrect">ClientRect</a></code> objects in content order describing the border
10091010
boxes (including those with a height or width of zero) with the
10101011
following constraints:</p>
10111012
<ul>
1013+
<li><p>Apply the SVG transforms and CSS transforms that apply to the element and its ancestors. <a href="#refsSVG">[SVG]</a>
1014+
<a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a>
10121015
<li><p>If the element on which the method was invoked has a computed
10131016
value for the 'display' property of 'table' or
10141017
'inline-table' include both the table box and the caption
@@ -1472,7 +1475,8 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">9 </span>Extensio
14721475
whole line box). The bounds of these <code><a href="#clientrect">ClientRect</a></code> objects are
14731476
computed using font metrics; thus, for horizontal writing, the vertical
14741477
dimension of each box is determined by the font ascent and descent, and
1475-
the horizontal dimension by the text advance width.</li>
1478+
the horizontal dimension by the text advance width. The SVG transforms and CSS transforms that apply to the ancestors are applied.
1479+
<a href="#refsSVG">[SVG]</a> <a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a></li>
14761480
</ul>
14771481

14781482
<p>The <dfn id="dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect"><code>getBoundingClientRect()</code></dfn> method, when invoked, must return the result of the following
@@ -1697,6 +1701,9 @@ <h2 class="no-num" id="references">References</h2>
16971701
<dt id="refsCSSOM">[CSSOM]
16981702
<dd><cite><a href="http://dev.w3.org/csswg/cssom/">CSS Object Model (CSSOM)</a></cite>, Simon Pieters and Glenn Adams. W3C.
16991703

1704+
<dt id="refsCSSTRANSFORMS">[CSSTRANSFORMS]
1705+
<dd><cite><a href="http://dev.w3.org/csswg/css-transforms/">CSS Transforms</a></cite>, Simon Fraser, Dean Jackson, Edward O'Connor et al.. W3C.
1706+
17001707
<dt id="refsCSSWRITINGMODES">[CSSWRITINGMODES]
17011708
<dd><cite><a href="http://dev.w3.org/csswg/css-writing-modes/">CSS Writing Modes Module</a></cite>, Elika J. Etemad and Koji Ishii. W3C.
17021709

cssom-view/Overview.src.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ <h3>The <code title>CaretPosition</code> Interface</h3>
927927
</ol>
928928
<li><p>If <span>caret node</span> is a text entry widget that is a replaced element,
929929
and that is in the document, return a <code>ClientRect</code> object for the caret
930-
in the widget as represented by the <span>caret offset</span> value.
930+
in the widget as represented by the <span>caret offset</span> value. The SVG transforms and CSS transforms that apply to the element and its ancestors are
931+
applied. <span data-anolis-ref>SVG</span> <span data-anolis-ref>CSSTRANSFORMS</span>
931932
<li><p>Return null.
932933
</ol>
933934

@@ -962,14 +963,16 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
962963
<li><p>If the element has an associated <span>SVG layout box</span> return a
963964
<code>ClientRectList</code> object containing a single
964965
<code>ClientRect</code> object that describes the bounding box of the
965-
element as defined by the SVG specification.
966-
<span data-anolis-ref>SVG</span></li>
966+
element as defined by the SVG specification, applying the SVG transforms and CSS transforms that apply to the element and its ancestors.
967+
<span data-anolis-ref>SVG</span> <span data-anolis-ref>CSSTRANSFORMS</span></li>
967968
<li>
968969
<p>Return a <code>ClientRectList</code> object containing a list of
969970
<code>ClientRect</code> objects in content order describing the border
970971
boxes (including those with a height or width of zero) with the
971972
following constraints:</p>
972973
<ul>
974+
<li><p>Apply the SVG transforms and CSS transforms that apply to the element and its ancestors. <span data-anolis-ref>SVG</span>
975+
<span data-anolis-ref>CSSTRANSFORMS</span>
973976
<li><p>If the element on which the method was invoked has a computed
974977
value for the 'display' property of 'table' or
975978
'inline-table' include both the table box and the caption
@@ -1433,7 +1436,8 @@ <h2>Extensions to the <code title>Range</code> Interface</h2>
14331436
whole line box). The bounds of these <code>ClientRect</code> objects are
14341437
computed using font metrics; thus, for horizontal writing, the vertical
14351438
dimension of each box is determined by the font ascent and descent, and
1436-
the horizontal dimension by the text advance width.</li>
1439+
the horizontal dimension by the text advance width. The SVG transforms and CSS transforms that apply to the ancestors are applied.
1440+
<span data-anolis-ref>SVG</span> <span data-anolis-ref>CSSTRANSFORMS</span></li>
14371441
</ul>
14381442

14391443
<p>The <dfn title=dom-Range-getBoundingClientRect><code>getBoundingClientRect()</code></dfn> method, when invoked, must return the result of the following

0 commit comments

Comments
 (0)