Skip to content

Commit acc6db3

Browse files
committed
Simplified and clarified the NamedFlow states and behavior when no longer in created state
1 parent 87ecd4e commit acc6db3

1 file changed

Lines changed: 69 additions & 53 deletions

File tree

css3-regions/Overview.html

Lines changed: 69 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@
228228

229229
<h1 id=css-regions-module>CSS Regions Module Level 3</h1>
230230

231-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 April 2012</h2>
231+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 April 2012</h2>
232232

233233
<dl>
234234
<dt>This version:
235235

236236
<dd><a
237-
href="http://www.w3.org/TR/2012/ED-css3-regions-20120416/">http://www.w3.org/csswg/css3-regions</a>
237+
href="http://www.w3.org/TR/2012/ED-css3-regions-20120420/">http://www.w3.org/csswg/css3-regions</a>
238238

239239
<dt>Latest version:
240240

@@ -1932,17 +1932,7 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
19321932
href="#dom-named-flow"><code class=idl>NamedFlow</code></a> object
19331933
representation of a <a href="#named-flow0">named flow</a>.
19341934

1935-
<p>The possible states for a <a href="#named-flow0">named flow</a> are
1936-
described in the following figure. These states are referenced in
1937-
subsequent text.
1938-
1939-
<div class=figure> <img alt="NamedFlow states"
1940-
src="images/named-flow-states.svg" width=600px>
1941-
<p class=caption><a href="#named-flow0">named flow</a> states and
1942-
transitions</p>
1943-
</div>
1944-
1945-
<p>An addition method and attribute on the <a
1935+
<p>An additional method and an additional attribute on the <a
19461936
href="http://www.w3.org/TR/dom/#interface-document"><code
19471937
class=idl>Document</code></a> interface provide access to <a
19481938
href="#named-flow0">named flows</a>.
@@ -1967,11 +1957,9 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
19671957

19681958
<p>The <a href="#document-namedflows"><code class=idl>namedFlows</code></a>
19691959
collection must include all <a href="#named-flow0">named flows</a> that
1970-
are currently in the <code>CREATED</code> and
1971-
<code>CREATED-REFERENCED</code> states. The list may include <a
1972-
href="#named-flow0">named flows</a> that are in the
1973-
<code>REFERENCED</code> state. The list may also include <a
1974-
href="#named-flow0">named flows</a> that are in the STALE state.
1960+
are currently in the <code>CREATED</code> state. The list must not include
1961+
<a href="#named-flow0">named flows</a> that are in the <code>NULL</code>
1962+
state.
19751963

19761964
<p>The <dfn id=document-getflowbyname><code
19771965
class=idl>getFlowByName</code></dfn> method on the <a
@@ -1985,25 +1973,8 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
19851973
<li><code class=idl>NULL</code>: the user agent must return
19861974
<code>null</code>.
19871975

1988-
<li><code class=idl>STALE</code>: the user agent may return null or a
1989-
valid <a href="#dom-named-flow"><code class=idl>NamedFlow</code></a>
1990-
instance. If the user agent returns a valid instance, subsequent calls to
1991-
the <a href="#document-getflowbyname"><code
1992-
class=idl>getFlowByName</code></a> method for the same name argument must
1993-
return the same object instance, no matter what the state of the <a
1994-
href="#named-flow0">named flow</a> is.
1995-
1996-
<li><code class=idl>CREATED</code> or <code
1997-
class=idl>CREATED-REFERENCED</code>: the user agent must return a valid
1998-
<a href="#dom-named-flow"><code class=idl>NamedFlow</code></a> instance.
1999-
2000-
<li><code class=idl>REFERENCED</code>: the user agent may return
2001-
<code>null</code> or it may return a valid <a
2002-
href="#dom-named-flow"><code class=idl>NamedFlow</code></a> instance. If
2003-
the user agent returns a valid object, subsequent calls to the <a
2004-
href="#document-getflowbyname"><code class=idl>getFlowByName</code></a>
2005-
method with the same name argument must return the same object instance,
2006-
no matter what the state of the <a href="#named-flow0">named flow</a> is.
1976+
<li><code class=idl>CREATED</code>: the user agent must return a valid <a
1977+
href="#dom-named-flow"><code class=idl>NamedFlow</code></a> instance.
20071978
</ul>
20081979

20091980
<p>The <dfn id=dom-named-flow-collection><code
@@ -2035,12 +2006,20 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
20352006
collection.length</code>.
20362007

20372008
<p>The <dfn id=dom-named-flow><code class=idl>NamedFlow</code></dfn>
2038-
interface offers a representation of the <a href="#named-flow0">named
2039-
flow</a>. A <a href="#dom-named-flow"><code class=idl>NamedFlow</code></a>
2040-
object is live meaning that it always represents the <a
2041-
href="#named-flow0">named flow</a> with the corresponding name, even if
2042-
that <a href="#named-flow0">named flow</a> has transitioned to the
2043-
<code>REFERENCED</code> or the <code>STALE</code> states.
2009+
interface offers a representation of a <a href="#named-flow0">named
2010+
flow</a> instance.
2011+
2012+
<p>The <a href="#dom-named-flow"><code class=idl>NamedFlow</code></a>
2013+
interface can be used for different purposes. For example, the <a
2014+
href="#dom-named-flow-get-regions-by-content"><code>getRegionsByContent()</code></a>
2015+
method can help navigate by bookmark: a script can find the <a
2016+
href="#css-region">region</a>s that display a particular anchor and bring
2017+
them to view.
2018+
2019+
<p>Likewise, the interface allows authors to check if all content has been
2020+
fitted into existing regions. If it has, the <a
2021+
href="#dom-named-flow-overset"><code>overset</code></a> attribute would be
2022+
false.
20442023

20452024
<pre class=idl>
20462025
interface <a
@@ -2108,17 +2087,54 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
21082087
target content node. Note that the returned values is a static sequence in
21092088
document order.
21102089

2111-
<p>The <a href="#dom-named-flow"><code class=idl>NamedFlow</code></a>
2112-
interface can be used for different purposes. For example, the <a
2113-
href="#dom-named-flow-get-regions-by-content"><code>getRegionsByContent()</code></a>
2114-
method can help navigate by bookmark: a script can find the <a
2115-
href="#css-region">region</a>s that display a particular anchor and bring
2116-
them to view.
2090+
<p>The <a href="#named-flow0">named flow</a> states are :
21172091

2118-
<p>Likewise, the interface allows authors to check if all content has been
2119-
fitted into existing regions. If it has, the <a
2120-
href="#dom-named-flow-overset"><code>overset</code></a> attribute would be
2121-
false.
2092+
<ul>
2093+
<li><code class=idl>NULL</code>: the <a href="#named-flow0">named flow</a>
2094+
is not referenced by any &lsquo;<a href="#flow-into"><code
2095+
class=property>flow-into</code></a>&rsquo; or &lsquo;<a
2096+
href="#flow-from"><code class=property>flow-from</code></a>&rsquo;
2097+
computed value.
2098+
2099+
<li><code class=idl>CREATED</code>: the <a href="#named-flow0">named
2100+
flow</a> is referenced by at least one &lsquo;<a href="#flow-into"><code
2101+
class=property>flow-into</code></a>&rsquo; or &lsquo;<a
2102+
href="#flow-from"><code class=property>flow-from</code></a>&rsquo;
2103+
computed value.
2104+
</ul>
2105+
2106+
<p>A <a href="#dom-named-flow"><code class=idl>NamedFlow</code></a> object
2107+
is live: it always represents the <a href="#named-flow0">named flow</a>
2108+
with the corresponding name even if that <a href="#named-flow0">named
2109+
flow</a> has transitioned to the <code>NULL</code> state.
2110+
2111+
<p>If a script holds a reference to a <a href="#dom-named-flow"><code
2112+
class=idl>NamedFlow</code></a> instance that has entered the
2113+
<code>NULL</code> state, its attributes and methods should behave as
2114+
follows:
2115+
2116+
<ul>
2117+
<li>the <a href="#dom-named-flow-name"><code class=idl>name</code></a>
2118+
attribute returns its value as normal.
2119+
2120+
<li>the <a href="#dom-named-flow-overset"><code
2121+
class=idl>overset</code></a> attribute returns <code
2122+
class=idl>true</code>.
2123+
2124+
<li>the <a href="#dom-named-flow-get-regions"><code
2125+
class=idl>getRegions</code></a> method returns an empty sequence.
2126+
2127+
<li>the <a href="#dom-named-flow-first-empty-region-index"><code
2128+
class=idl>firstEmptyRegionIndex</code></a> attribute returns <code
2129+
class=idl>-1</code>.
2130+
2131+
<li>the <a href="#dom-named-flow-get-content"><code
2132+
class=idl>getContent()</code></a> method returns an empty <code
2133+
class=idl>NodeList</code> instance.
2134+
2135+
<li>the <code class=idl>getRegionsByContentNode()</code> method retuns an
2136+
empty sequence.
2137+
</ul>
21222138

21232139
<h3 id=the-region-interface><span class=secno>6.2. </span>The Region
21242140
interface</h3>

0 commit comments

Comments
 (0)