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
<h3id="cssomview-and-regions">CSS OM View and CSS Regions</h3>
1960
+
1961
+
1962
+
<h4id="cssomview-getclientrects-and-getboundingclientrect"><codeclass="idl">getClientRects()</code> and <code>getBoundingClientRects()</code></h4>
1963
+
1964
+
<p>The <ahref="http://www.w3.org/TR/cssom-view/">CSSOM View Module</a> defines how user agents compute the bounding client rectangle for an element (<codeclass="idl">getBoundingClientRect()</code>) and its generated boxes (<codeclass="idl">getClientRects()</code>).
1965
+
1966
+
<p>This definition applies to CSS regions and the multiple boxes generated for an element flowing
1967
+
through multiple regions. The <codeclass="idl">getClientRects()</code> method returns the list
1968
+
of boxes generated for each of the element fragment laid out different regions.
1969
+
The <code>getBoundingClientRect()</code> method operates as specified in the
1970
+
<ahref="http://www.w3.org/TR/cssom-view/">CSSOM View Module</a> as well and is computed
1971
+
from the set of rectangles returned by <codeclass="idl">getClientRects()</code>.</p>
<codeclass="idl">offsetWidth</code> and <codeclass="idl">offsetWidth</code></h4>
1975
+
1976
+
<p>The computation of the <ahref="http://dev.w3.org/csswg/cssom-view/#offset-attributes">offset attributes</a>
1977
+
for elements laid out in a <span>named flow</code> follow the <ahref="http://dev.w3.org/csswg/cssom-view/#offset-attribute">specification</a>. For the purpose of the
1978
+
algorithm, the <em>first CSS layout box</em> associated
1979
+
with an element laid out in a <span>named flow</span> is the box generated for the first region
1980
+
the element is laid out into.</p>
1981
+
1966
1982
<h2id="relation-to-other-specifications">Relation to other
1967
1983
specifications</h2>
1968
1984
@@ -2046,6 +2062,8 @@ <h3 id="changes_from_June_09_2011">Changes from <a href="http://www.w3.org/TR/20
2046
2062
<li>Changed paragraph on pseudo-elements to disallow 'flow-into' on all pseudo-elements because
2047
2063
moving a '::before' element (for a example) to a named flow does not seem useful and causes specification
2048
2064
and implementation complexity.</li>
2065
+
<li>Added section about getClientRects(), getBoundingClientRect(), offsetWidth, offsetHeight, offsetTop and
0 commit comments