Skip to content

Commit f3bb20c

Browse files
committed
[css-regions] restrict flow-from further, collection misses undefined->null
1 parent e8f7af3 commit f3bb20c

2 files changed

Lines changed: 31 additions & 54 deletions

File tree

css-regions/Overview.html

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Regions Module Level 1" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-07-03 name=dcterms.date>
15+
<meta content=2013-07-10 name=dcterms.date>
1616
<meta content="Vincent Hardy" name=dcterms.creator>
1717
<meta content="Rossen Atanassov" name=dcterms.creator>
1818
<meta content="Alan Stearns" name=dcterms.creator>
@@ -43,7 +43,7 @@
4343

4444
<h1 id=css-regions-module>CSS Regions Module Level 1</h1>
4545

46-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 3 July 2013</h2>
46+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 July 2013</h2>
4747

4848
<dl>
4949
<dt>This version:
@@ -858,7 +858,8 @@ <h3 id=the-flow-from-property><span class=secno>3.2. </span>The ‘<a
858858

859859
<td>Non-replaced <a
860860
href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes">block
861-
containers</a>. <br>
861+
containers</a> whose display property computes to block, inline-block
862+
or table-cell. <br>
862863
This might be expanded in future versions of the specification to allow
863864
other types of containers to receive flow content.
864865

@@ -955,20 +956,6 @@ <h3 id=the-flow-from-property><span class=secno>3.2. </span>The ‘<a
955956
selector is still associated with that empty <a href="#named-flow0">named
956957
flow</a> and, consequently, its children are not formatted visually.</div>
957958

958-
<div class=note><span class=note-prefix>Note </span>
959-
<p>At the time of this note-writing, the <code>display</code> values that
960-
always result in a non-replaced block container include
961-
<code>block</code>, <code>inline-block</code>, <code>table-cell</code>,
962-
<code>table-caption</code>, and <code>list-item</code>. All of these
963-
display values work as regions with non-replaced elements.
964-
965-
<p>The <code>flex</code> and <code>grid</code> display values do not
966-
result in block containers (they are defined as flex containers and grid
967-
elements, respectively). So ‘<a href="#flow-from"><code
968-
class=property>flow-from</code></a>’ combined with those display values
969-
does not result in a CSS Region.
970-
</div>
971-
972959
<p><a href="#css-region" title=region>CSS Regions</a> create a new <a
973960
href="http://www.w3.org/TR/CSS2/visuren.html#z-index">stacking
974961
context</a>. <a href="#css-region" title=region>CSS Regions</a> establish
@@ -1811,7 +1798,7 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
18111798
<p>The <dfn id=dom-named-flow-collection-item><code
18121799
class=idl>item(index)</code></dfn> method returns the <a
18131800
href="#dom-named-flow"><code>NamedFlow</code></a> instance at index
1814-
<em>index</em> in the collection or <code class=idl>undefined</code> if
1801+
<em>index</em> in the collection or <code class=idl>null</code> if
18151802
<em>index</em> is out of range. An object <code>collection</code>
18161803
implementing <a
18171804
href="#dom-named-flow-collection"><code>NamedFlowCollection</code></a>
@@ -1823,7 +1810,7 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
18231810
href="#dom-named-flow"><code>NamedFlow</code></a> instance in the
18241811
collection whose name attribute matches the supplied <a
18251812
href="#dom-named-flow-name"><em>name</em></a>, or <code
1826-
class=idl>undefined</code> if there is no match.
1813+
class=idl>null</code> if there is no match.
18271814

18281815
<p>The <dfn id=dom-named-flow><code class=idl>NamedFlow</code></dfn>
18291816
interface offers a representation of a <a href="#named-flow0">named
@@ -2852,6 +2839,11 @@ <h3 id="changes_from_May_28_2013"><span class=secno>12.1. </span>Changes
28522839
28<sup>th</sup> 2013</a> version</h3>
28532840

28542841
<ul>
2842+
<li>Changed NamedFlowCollection getters back to null when there is no
2843+
NamedFlow.
2844+
2845+
<li>Restricted flow-from to blocks, inline-blocks and table-cells
2846+
28552847
<li>Removed issue on user events and added note describing solution(s)
28562848

28572849
<li>Changed type of NamedFlow.getContent() from NodeList to
@@ -2948,15 +2940,15 @@ <h2 class=no-num id=acknowledgments>Acknowledgments</h2>
29482940
for their contributions, either during the conception of CSS regions or
29492941
during its development and specification review process:
29502942

2951-
<p>Rossen Atanassov, Tab Atkins, Mihai Balan, Andrei Bucur, Razvan Caliman,
2952-
Alexandru Chiculita, Phil Cupp, Arron Eicholz, John Jansen, Dimitri
2953-
Glazkov, Daniel Glazman, Arno Gourdol, David Hyatt, Brian Heuston, Ian
2954-
Hickson, Jonathan Hoersch, Michael Jolson, Brad Kemper, Håkon Wium Lie,
2955-
Kang-Hao (Kenny) Lu, Mihai Maerean, Markus Mielke, Robert O'Callahan,
2956-
Edward O'Connor, Mihnea Ovidenie, Virgil Palanciuc, Olga Popiv, Christoph
2957-
Päper, Anton Prowse, Peter Sorotokin, Elliott Sprehn, Christian
2958-
Stockwell, Eugene Veselov, Boris Zbarsky, Stephen Zilles and the CSS
2959-
Working Group members.
2943+
<p>Erik Arvidsson, Tab Atkins, Catalin Badea, Mihai Balan, Andrei Bucur,
2944+
Razvan Caliman, Alexandru Chiculita, Phil Cupp, Arron Eicholz, John
2945+
Jansen, Dimitri Glazkov, Daniel Glazman, Arno Gourdol, Catalin
2946+
Grigoroscuta, David Hyatt, Brian Heuston, Ian Hickson, Jonathan Hoersch,
2947+
Michael Jolson, Brad Kemper, Håkon Wium Lie, Kang-Hao (Kenny) Lu, Mihai
2948+
Maerean, Markus Mielke, Robert O'Callahan, Edward O'Connor, Mihnea
2949+
Ovidenie, Virgil Palanciuc, Olga Popiv, Christoph Päper, Anton Prowse,
2950+
Peter Sorotokin, Elliott Sprehn, Radu Stavila, Christian Stockwell, Eugene
2951+
Veselov, Boris Zbarsky, Stephen Zilles and the CSS Working Group members.
29602952

29612953
<h2 class=no-num id=intro-example-code>Appendix A. Example Code for
29622954
Introduction</h2>
@@ -3471,7 +3463,8 @@ <h2 class=no-num id=property-index>Property index</h2>
34713463

34723464
<td>none
34733465

3474-
<td>Non-replaced block containers. This might be expanded in future
3466+
<td>Non-replaced block containers whose display property computes to
3467+
block, inline-block or table-cell. This might be expanded in future
34753468
versions of the specification to allow other types of containers to
34763469
receive flow content.
34773470

css-regions/Overview.src.html

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ <h3 id="the-flow-from-property">The 'flow-from' property</h3>
671671
<tr>
672672
<th>Applies to:</th>
673673

674-
<td>Non-replaced <a href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes">block containers</a>.
674+
<td>Non-replaced <a href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes">block containers</a> whose display property computes to block, inline-block or table-cell.
675675
<br/>
676676
This might be expanded in future versions of the specification
677677
to allow other types of containers to receive flow content.</td>
@@ -782,27 +782,6 @@ <h3 id="the-flow-from-property">The 'flow-from' property</h3>
782782
and, consequently,
783783
its children are not formatted visually.
784784
</div>
785-
786-
<div class="note"><span class="note-prefix">Note </span>
787-
<p>At the time of this note-writing,
788-
the <code>display</code> values that always result
789-
in a non-replaced block container include
790-
<code>block</code>,
791-
<code>inline-block</code>,
792-
<code>table-cell</code>,
793-
<code>table-caption</code>,
794-
and <code>list-item</code>.
795-
All of these display values
796-
work as regions with
797-
non-replaced elements.</p>
798-
<p>The <code>flex</code>
799-
and <code>grid</code> display values
800-
do not result in block containers
801-
(they are defined as flex containers
802-
and grid elements, respectively).
803-
So 'flow-from' combined with those display values
804-
does not result in a CSS Region.</p>
805-
</div>
806785

807786
<p><span title="region">CSS Regions</span>
808787
create a new
@@ -1652,7 +1631,7 @@ <h3 id="the-namedflow-interface">The NamedFlow interface</h3>
16521631
the <code>NamedFlow</code> instance
16531632
at index <em>index</em>
16541633
in the collection
1655-
or <code class="idl">undefined</code>
1634+
or <code class="idl">null</code>
16561635
if <em>index</em> is out of range.
16571636
An object <code>collection</code>
16581637
implementing <code>NamedFlowCollection</code>
@@ -1664,7 +1643,7 @@ <h3 id="the-namedflow-interface">The NamedFlow interface</h3>
16641643
in the collection
16651644
whose name attribute
16661645
matches the supplied <em>name</em>,
1667-
or <code class="idl">undefined</code>
1646+
or <code class="idl">null</code>
16681647
if there is no match.
16691648

16701649
<p>The <dfn id="dom-named-flow"><code class="idl">NamedFlow</code></dfn>
@@ -2469,6 +2448,8 @@ <h2 id="changes">Changes</h2>
24692448
<h3 id="changes_from_May_28_2013">Changes from <a href="http://www.w3.org/TR/2013/WD-css3-regions-20130528/">May 28<sup>th</sup> 2013</a> version</h3>
24702449

24712450
<ul>
2451+
<li>Changed NamedFlowCollection getters back to null when there is no NamedFlow.</li>
2452+
<li>Restricted flow-from to blocks, inline-blocks and table-cells</li>
24722453
<li>Removed issue on user events and added note describing solution(s)</li>
24732454
<li>Changed type of NamedFlow.getContent() from NodeList to sequence&lt;Node&gt;</li>
24742455
</ul>
@@ -2523,8 +2504,9 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
25232504
<p>In addition, the editors would like to thank the following individuals for their contributions,
25242505
either during the conception of CSS regions or during its development and specification review
25252506
process:</p>
2526-
<p>Rossen Atanassov,
2507+
<p>Erik Arvidsson,
25272508
Tab Atkins,
2509+
Catalin Badea,
25282510
Mihai Balan,
25292511
Andrei Bucur,
25302512
Razvan Caliman,
@@ -2535,6 +2517,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
25352517
Dimitri Glazkov,
25362518
Daniel Glazman,
25372519
Arno Gourdol,
2520+
Catalin Grigoroscuta,
25382521
David Hyatt,
25392522
Brian Heuston,
25402523
Ian Hickson,
@@ -2554,6 +2537,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
25542537
Anton Prowse,
25552538
Peter Sorotokin,
25562539
Elliott Sprehn,
2540+
Radu Stavila,
25572541
Christian Stockwell,
25582542
Eugene Veselov,
25592543
Boris Zbarsky,

0 commit comments

Comments
 (0)