Skip to content

Commit 238305f

Browse files
committed
Renamed regionOverflow to regionOverset. Added state diagram for NamedFlow state and added more precise wording on getFlowByName following bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=14948
--HG-- extra : rebase_source : 6ea009a2caf0ab935c4d2b41902f6f2b202665a0
1 parent 8fe46cf commit 238305f

4 files changed

Lines changed: 1282 additions & 17 deletions

File tree

css3-regions/Overview.src.html

Lines changed: 54 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ <h3 id="the-region-overflow-property">The region-overflow property</h3>
12371237
"https://www.w3.org/Bugs/Public/show_bug.cgi?id=15832">Bug-15832</a>
12381238

12391239
<div class="issue-details">
1240-
<p class="short-desc">Should we have region-overflow:nobreak and have region-overflow apply to all regions, not just the last?</p>
1240+
<p class="short-desc">Should we have region-overflow:nobreak and have 'region-overflow' apply to all regions, not just the last?</p>
12411241
</div>
12421242
</div>
12431243

@@ -1686,6 +1686,19 @@ <h2 id="cssom_view_and_css_regions">CSSOM view and CSS regions</h2>
16861686
</div>
16871687

16881688
<h3 id="the-namedflow-interface">The NamedFlow interface</h3>
1689+
1690+
<p>A <span>named flow</span> is created when it becomes referenced by the
1691+
'flow-into' and 'flow-from' computed values. The following APIs also allow
1692+
scripts to reference a <code class="idl">NamedFlow</code> object representation
1693+
of a <span>named flow</span>.</p>
1694+
1695+
<p>The possible states for a <span>named flow</span> are described in the following
1696+
figure and referenced in subsequent text.</p>
1697+
1698+
<div class="figure">
1699+
<img src="images/named-flow-states.svg" alt="NamedFlow states" width="600px" />
1700+
<p class="caption"><span>named flow</span> states and transitions</p>
1701+
</div>
16891702

16901703
<div class="issue-marker" data-bug_id="14948" data-bug_status="NEW">
16911704
<a href=
@@ -1704,22 +1717,44 @@ <h3 id="the-namedflow-interface">The NamedFlow interface</h3>
17041717
<pre class="idl">
17051718
partial interface <a href=
17061719
"http://www.w3.org/TR/dom/#interface-document">Document</a> {
1707-
<a href="#dom-namedflow">NamedFlow</a> getFlowByName(DOMString name);
1708-
<a href="#dom-namedflow-collection">NamedFlowCollection</a> getNamedFlows();
1720+
<a href="#dom-namedflow">NamedFlow?</a> getFlowByName(DOMString name);
1721+
readonly attribute <a href="#dom-namedflow-collection">NamedFlowCollection</a> namedFlows;
17091722
};
17101723
</pre>
17111724

1712-
<p>The <code class="idl">getNamedFlows</code> method on the <a href=
1725+
<p>The <code class="idl">namedFlows</code> attribute on the <a href=
17131726
"http://www.w3.org/TR/dom/#interface-document"><code class=
1714-
"idl">Document</code></a> interface returns the list of all the <span>named
1727+
"idl">Document</code></a> interface returns the live list of all the current <span>named
17151728
flow</span>s in the document.</p>
17161729

1730+
<p>The <code class="idl">namedFlows</code> collection must include all <span>named flow</span>
1731+
that are currently in the <code>CREATED</code> and <code>CREATED-REFERENCED</code>state.
1732+
The list may include <span>named flows</span>
1733+
that are in the <code>REFERENCED</code> state. The list
1734+
may also include <span>named flow</code> instances that are in the STALE state.</p>
1735+
17171736
<p>The <code class="idl">getFlowByName</code> method on the <a href=
17181737
"http://www.w3.org/TR/dom/#interface-document"><code class=
17191738
"idl">Document</code></a> interface provides access to the document's <span
1720-
>named flow</span> instances.</p>
1739+
>named flow</span> instances. The return value depends on the <span>named flow</span>
1740+
state:</p>
1741+
1742+
<ul>
1743+
<li><code class="idl">NULL</code>: the user agent must return <code>null</code></li>
1744+
<li><code class="idl">STALE</code> the user agent may return null or a valid
1745+
<code class="idl">NamedFlow</code> instance.
1746+
If the user agent returns a valid instance, subsequent calls to the <code class="idl">getFlowByName</code> method
1747+
must return the same object instance, no matter what the state of the
1748+
<span>named flow</span> is.</li>
1749+
<li><code class="idl">CREATED</code> or <code class="idl">CREATED-REFERENCED</code>: the
1750+
user agent must return a valid <code class="idl">NamedFlow</code> instance.</li>
1751+
<li><code class="idl">REFERENCED</code>: the user agent may return <code>null</code> or it may return a
1752+
valid <code class="idl">NamedFlow</code> instance. If the user agent returns a
1753+
valid object, subsequent calls to the <code class="idl">getFlowByName</code> method
1754+
must return the same object instance, no matter what the state of the
1755+
<span>named flow</span> is.</li>
1756+
</ul>
17211757

1722-
17231758
<div class="issue-marker" data-bug_id="15828" data-bug_status="NEW">
17241759
<a href=
17251760
"https://www.w3.org/Bugs/Public/show_bug.cgi?id=15828">Bug-15828</a>
@@ -1806,33 +1841,35 @@ <h3 id="extension-to-the-element-interface">Extension to the Element
18061841
<pre class="idl">
18071842
partial interface <a href=
18081843
"http://www.w3.org/TR/dom/#interface-element">Element</a> {
1809-
readonly attribute DOMString <a href="#dom-element-regionoverflow">regionOverflow</a>;
1844+
readonly attribute DOMString <a href="#dom-element-regionoverset">regionOverset</a>;
18101845
sequence&lt;<a href="#">Range</a>&gt; <a href=
18111846
"#dom-element-getregionflowranges">getRegionFlowRanges()</a>;
18121847
};
18131848

18141849
</pre>
18151850

1816-
<p>The <dfn id="dom-element-regionoverflow"><code class=
1817-
"idl">regionOverflow</code></dfn> attribute returns one of the following
1851+
<p>The <dfn id="dom-element-regionoverset"><code class=
1852+
"idl">regionOverset</code></dfn> attribute returns one of the following
18181853
values:</p>
18191854

18201855
<dl>
1821-
<dt>'overflow'</dt>
1856+
<dt>'overset'</dt>
18221857

18231858
<dd>the region is the last one in the
18241859
<span title="region-chain">region chain</span> and
18251860
not able to fit the remaining content from the <span>named flow</span>.
18261861
Note that the region's <a href=
18271862
"http://www.w3.org/TR/CSS21/visufx.html#overflow"><code class=
18281863
"idl">overflow</code></a> property value can be used to control the
1829-
visibility of the overflowing content. </dd>
1864+
visibility of the overflowing content and the
1865+
'region-overflow' property controls whether or not fragmentation happens
1866+
on the content that flows in the last region.</dd>
18301867

18311868
<dt>'fit'</dt>
18321869

1833-
<dd>the region element's content fits into the region's <a href=
1870+
<dd>the region element's flow fragment content fits into the region's <a href=
18341871
"http://www.w3.org/TR/CSS21/box.html#box-dimensions">content box</a>.
1835-
It does not overflow. If the region is the last one in the <span title=
1872+
If the region is the last one in the <span title=
18361873
"region-chain">region chain</span>, it means that the content fits
18371874
without overflowing. If the region is not the last one in the region
18381875
chain, that means the <span>named flow</span>
@@ -1846,9 +1883,6 @@ <h3 id="extension-to-the-element-interface">Extension to the Element
18461883
<dd>the region element has no content and is empty. All content from
18471884
the <span>named flow</span> was fitted in regions
18481885
with a lower document order.</dd>
1849-
1850-
<dt>'undefined'</dt>
1851-
<dd>The element is not a <span>region</span>.</dd>
18521886
</dl>
18531887

18541888
<p>Note that if there is no content in the named flow, all regions associated
@@ -1969,6 +2003,9 @@ <h3 id="changes_from_June_09_2011">Changes from <a href="http://www.w3.org/TR/20
19692003
<li>Fixed DOM references to now point to the DOM TR</li>
19702004
<li>Fixed Web IDL issues as reported in <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15931">Issue 15931</a></li>
19712005
<li>Added text to explain support for multi-column elements as required by <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15191">Issue 15191</a> and <a href="http://www.w3.org/Style/CSS/Tracker/actions/375">Action 375</a>.</li>
2006+
<li>Renamed 'regionOverflow' to 'regionOverset' to avoid confusion between fitting a flow in
2007+
regions and the concept of visual overflow that the word 'overflow' (and the property) carry.</li>
2008+
<li>Reworked the partial document interface following the <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=14948">Issue 14948</a> on <code>getFlowByName</code>.</li>
19722009
</ul>
19732010

19742011

0 commit comments

Comments
 (0)