Skip to content

Commit 2dfb34e

Browse files
committed
add getComputedStyle to Region interface
1 parent 4b751fb commit 2dfb34e

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

css3-regions/Overview.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,12 @@ <h3 id=the-region-interface><span class=secno>6.2. </span>The Region
19891989
sequence&lt;<a
19901990
href="#">Range</a>&gt;? <a
19911991
href="#dom-region-getregionflowranges">getRegionFlowRanges()</a>;
1992+
<a
1993+
href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a> <a
1994+
href="#dom-region-getComputedStyle">getComputedStyle</a>(Element elt);
1995+
<a
1996+
href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a> <a
1997+
href="#dom-region-getComputedStyle">getComputedStyle</a>(Element elt, DOMString pseudoElt);
19921998
};</pre>
19931999

19942000
<p>The <dfn id=dom-region-regionoverset><code
@@ -2064,6 +2070,23 @@ <h3 id=the-region-interface><span class=secno>6.2. </span>The Region
20642070
method returns null if the <a href="#css-region">region</a> object is not
20652071
(or no longer) a region.
20662072

2073+
<p>The <dfn id=dom-region-getComputedStyle>getComputedStyle</dfn> methods
2074+
on the Region interface work the same as the <a
2075+
href="http://dev.w3.org/csswg/cssom/#dom-window-getcomputedstyle"><code
2076+
class=idl>getComputedStyle</code></a> <a href="#CSSOM"
2077+
rel=biblioentry>[CSSOM]<!--{{!CSSOM}}--></a> methods on the <a
2078+
href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window"><code
2079+
class=idl>Window</code></a> interface [[!HTML]] with the following
2080+
exceptions. For the <a href="#css-region"><code
2081+
class=idl>Region</code></a> interface the <a
2082+
href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a>
2083+
returned must include the result of <a
2084+
href="#the-at-region-style-rule">region styling</a>. If the element is
2085+
fragmented across region boundaries, the <a
2086+
href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a>
2087+
returned must apply only to the fragment that flows through the <span>CSS
2088+
Region</span>.
2089+
20672090
<div class=note>
20682091
<p>A <a href="#css-region"><code class=idl>Region</code></a> instance may
20692092
represent and object that is no longer a <a
@@ -3578,6 +3601,9 @@ <h2 class=no-num id=index>Index</h2>
35783601
<li>flow-into, <a href="#flow-into"
35793602
title=flow-into><strong>3.1.</strong></a>
35803603

3604+
<li>getComputedStyle, <a href="#dom-region-getComputedStyle"
3605+
title=getComputedStyle><strong>6.2.</strong></a>
3606+
35813607
<li>getContent(), <a href="#dom-named-flow-get-content"
35823608
title="getContent()"><strong>6.1.</strong></a>
35833609

css3-regions/Overview.src.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,8 @@ <h3 id="the-region-interface">The Region interface</h3>
17481748
readonly attribute DOMString <a href="#dom-region-flowfrom">flowFrom</a>;
17491749
sequence&lt;<a href="#">Range</a>&gt;? <a href=
17501750
"#dom-region-getregionflowranges">getRegionFlowRanges()</a>;
1751+
<a href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-region-getComputedStyle">getComputedStyle</a>(Element elt);
1752+
<a href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-region-getComputedStyle">getComputedStyle</a>(Element elt, DOMString pseudoElt);
17511753
};</pre>
17521754

17531755
<p>The <dfn id="dom-region-regionoverset"><code class=
@@ -1831,6 +1833,20 @@ <h3 id="the-region-interface">The Region interface</h3>
18311833
if the <span>region</span> object
18321834
is not (or no longer) a region.</p>
18331835

1836+
<p>The <dfn id="dom-region-getComputedStyle">getComputedStyle</dfn>
1837+
methods on the Region interface work the same as the
1838+
<a href="http://dev.w3.org/csswg/cssom/#dom-window-getcomputedstyle"><code class="idl">getComputedStyle</code></a> [[!CSSOM]]
1839+
methods on the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window"><code class="idl">Window</code></a>
1840+
interface [[!HTML]] with the following exceptions.
1841+
For the <code class="idl">Region</code> interface
1842+
the <a href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a>
1843+
returned must include the result of
1844+
<a href="#the-at-region-style-rule">region styling</a>.
1845+
If the element is fragmented across region boundaries,
1846+
the <a href="http://dev.w3.org/csswg/cssom/#cssstyledeclaration">CSSStyleDeclaration</a> returned must apply only
1847+
to the fragment that flows through
1848+
the <span>CSS Region</span>.
1849+
18341850
<div class="note">
18351851
<p>A <code class="idl">Region</code> instance may represent and
18361852
object that is no longer a <span>region</span>. This may happen, for example if the

0 commit comments

Comments
 (0)