224224
225225 < h1 id =css-regions-module > CSS Regions Module Level 3</ h1 >
226226
227- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 9 April 2012</ h2 >
227+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 10 April 2012</ h2 >
228228
229229 < dl >
230230 < dt > This version:
231231
232232 < dd > < a
233- href ="http://www.w3.org/TR/2012/ED-css3-regions-20120409 / "> http://www.w3.org/csswg/css3-regions</ a >
233+ href ="http://www.w3.org/TR/2012/ED-css3-regions-20120410 / "> http://www.w3.org/csswg/css3-regions</ a >
234234
235235 < dt > Latest version:
236236
@@ -584,9 +584,9 @@ <h3 id=named-flows-and-regions><span class=secno>1.1. </span>Named flows
584584 </ div >
585585 </ div >
586586
587- < p > The designer's intent is to position an image in region ‘< code
587+ < p > The designer's intent is to position an image in box ‘< code
588588 class =property > A</ code > ’ and to flow an article's text from region
589- ‘< code class =css > 1</ code > ’, to region ‘< code
589+ ‘< code class =css > 1</ code > ’ to regions ‘< code
590590 class =css > 2</ code > ’, ‘< code class =css > 3</ code > ’ and
591591 ‘< code class =css > 4</ code > ’. Note that the second region should
592592 have two columns.
@@ -613,44 +613,43 @@ <h3 id=named-flows-and-regions><span class=secno>1.1. </span>Named flows
613613 <p>Then, the example ...</p>
614614 <p>Finally, this ...</p>
615615</div>
616-
617- </ pre >
616+ </ pre >
618617
619618 < p > And the following snippet shows an example using grid cells to define,
620619 size and position the region areas:
621620
622621 < pre >
623622<style>
624- #grid {
625- width: 800px ;
626- height: 600px ;
627- grid-template: "aaa.d"
628- "....d"
629- "bbb.d"
630- "....d"
631- "ccc.d";
632- grid-rows: 52% 4% 20% 4% 20%;
633- grid-columns: 30% 5% 30% 5% 30%;
634- }
635- #regionA { grid-cell: a; }
636- #region1 { grid-cell: b; }
637- #region2 { grid-cell: c; }
638- #region3 { grid-cell: d; }
639-
640- #region4 {
641- width: 800px ;
642- }
643-
644- #region2 {
645- column-count: 2;
646- }
623+ #grid {
624+ width: 80vw ;
625+ height: 60vw ;
626+ grid-template: "aaa.d"
627+ "....d"
628+ "bbb.d"
629+ "....d"
630+ "ccc.d";
631+ grid-rows: 52% 4% 20% 4% 20%;
632+ grid-columns: 30% 5% 30% 5% 30%;
633+ }
634+ #region1 { grid-cell: a; }
635+ #region2 { grid-cell: b; }
636+ #boxA { grid-cell: c; }
637+ #region3 { grid-cell: d; }
638+
639+ #region4 {
640+ width: 80vw ;
641+ }
642+
643+ #region2 {
644+ column-count: 2;
645+ }
647646</style>
648647
649648<div id="grid">
650- <div id="regionA "></div>
651- <div id="region1 "></div>
652- <div id="region2 "></div>
653- <div id="region3"></div>
649+ <div id="region1 "></div>
650+ <div id="region2 "></div>
651+ <div id="boxA "></div>
652+ <div id="region3"></div>
654653</div>
655654<div id="region4"></div>
656655 </ pre >
@@ -672,14 +671,14 @@ <h3 id=named-flows-and-regions><span class=secno>1.1. </span>Named flows
672671<style>
673672
674673#article {
675- < strong > flow-into: article_flow;</ strong >
674+ < strong > flow-into: article_flow;</ strong >
676675}
677676
678677#region1, #region2, #region3, #region4 {
679- < strong > flow-from: article_flow;</ strong >
678+ < strong > flow-from: article_flow;</ strong >
680679}
681680</style>
682- </ pre >
681+ </ pre >
683682 </ div >
684683
685684 < p > The ‘< code class =css > article_flow</ code > ’ value on the
@@ -740,14 +739,13 @@ <h3 id=region-styling><span class=secno>1.2. </span>Regions styling</h3>
740739
741740 < p > Region styling allows content to be styled depending on the region it
742741 flows into. It is a more sophisticated form of pseudo-element styling such
743- as < a href ="http://www.w3.org/TR/css3-selectors/#first-line "> < code
742+ as < a href ="http://www.w3.org/TR/css3-selectors/#first-line "> < code
744743 class =css > ::first-line</ code > </ a > which apply a particular style to a
745744 fragment of content. With region styling, additional selectors may apply
746745 depending on the region into which content flows.
747746
748- < p > In our example, the designer wants to make text flowing into region dark
749- blue. In addition, < code class =html > <h1></ code > headers should be
750- crimson.
747+ < p > In our example, the designer wants to make text flowing into region 1
748+ dark blue and bold.
751749
752750 < p > This design can be expressed with region styling as shown below.
753751
@@ -758,50 +756,48 @@ <h3 id=region-styling><span class=secno>1.2. </span>Regions styling</h3>
758756 * Default article styling.
759757 */
760758#article {
761- color:#777;
762- text-align: justify;
759+ color:#777;
760+ text-align: justify;
763761}
764762
765763#article h1 {
766- color: crimson;
767- display: run-in;
764+ color: crimson;
765+ display: run-in;
768766}
769767
770768#article h2 {
771- border-left: 1px solid #777;
772- padding-left: 2ex;
769+ border-left: 1px solid #777;
770+ padding-left: 2ex;
773771}
774772
775773/*
776774 * Additional styling to apply to content when it falls into
777775 * region1
778776 */
779777< strong > @region #region1 {</ strong >
780- p {
781- color: #0C3D5F;
782- font-weight: bold;
783- }
778+ p {
779+ color: #0C3D5F;
780+ font-weight: bold;
781+ }
784782< strong > }</ strong >
785783
786-
787784/*
788785 * Style that would apply to region1's normal content but
789786 * will not apply to its named flow content.
790787 */
791788#region1 p {
792- color: red;
789+ color: red;
793790}
794791
795792</style>
796- </ pre >
793+ </ pre >
797794 </ div >
798795
799796 < p > The ‘< code class =css > @region</ code > ’ rule for region 1
800797 limits its selectors to content flowing into region 1. The following
801- figure shows how the rendering changes if we do not apply styling specific
802- to region 1. Note how more text fits into region 1 now that the
803- ‘< code class =property > font-weight</ code > ’ is normal instead of
804- bold.
798+ figure shows how the rendering changes if we apply styling specific to
799+ region 1. Note how less text fits into region 1 now that the ‘< code
800+ class =property > font-weight</ code > ’ is bold instead of normal.
805801
806802 < div class =figure > < img
807803 alt ="Illustrate how changing region styling affects the flow of content. "
@@ -816,9 +812,8 @@ <h3 id=region-styling><span class=secno>1.2. </span>Regions styling</h3>
816812 href ="#named-flow0 "> named flow</ a > content because the
817813 < code > <p></ code > elements in the ‘< code
818814 class =property > article</ code > ’ < a href ="#named-flow0 "> named flow</ a >
819- are not descendants of the < code > #region1</ code > element and,
820- consequently, the < code > "#region1 p"</ code > selector does not apply to
821- these elements.
815+ are not descendants of the < code > #region1</ code > element and consequently
816+ the < code > "#region1 p"</ code > selector does not apply to these elements.
822817
823818 < h2 id =css-regions-concepts > < span class =secno > 2. </ span > CSS regions
824819 concepts</ h2 >
@@ -1546,13 +1541,13 @@ <h3 id=the-region-overflow-property><span class=secno>3.4. </span>The
15461541 < pre >
15471542<style>
15481543#article {
1549- flow-into: "article";
1544+ flow-into: "article";
15501545}
15511546
15521547#region_1, #region_2 {
1553- flow-from: article;
1554- < strong > region-overflow: break;</ strong > /* or none */
1555- < strong > overflow: visible;</ strong > /* or hidden */
1548+ flow-from: article;
1549+ < strong > region-overflow: break;</ strong > /* or none */
1550+ < strong > overflow: visible;</ strong > /* or hidden */
15561551}
15571552
15581553</style>
@@ -1562,7 +1557,7 @@ <h3 id=the-region-overflow-property><span class=secno>3.4. </span>The
15621557<div id="region_1"></div>
15631558<div id="region_2"></div>
15641559
1565- </ pre >
1560+ </ pre >
15661561 </ div >
15671562
15681563 < div class =figure >
@@ -1920,7 +1915,7 @@ <h2 id=multi-column-regions><span class=secno>4. </span>Multi-column
19201915 the rest of the content flows into regions that follow in the region
19211916 chain. However, if a column-box region is the last region in a
19221917 < span > region chain, then the multi-column element must generate additional
1923- column-box regions if its flow fragment overflows ( as it would with normal
1918+ column-box regions if its flow fragment overflows as it would with normal
19241919 content).</ span >
19251920
19261921 < h2 id ="pseudo_elements "> < span class =secno > 5. </ span > Pseudo-elements</ h2 >
@@ -2044,10 +2039,10 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
20442039 < pre class =idl >
20452040partial interface < a
20462041 href ="http://www.w3.org/TR/dom/#interface-document "> Document</ a > {
2047- readonly attribute < a
2042+ readonly attribute < a
20482043 href ="#dom-named-flow-collection "> NamedFlowCollection</ a > < a
20492044 href ="#document-namedflows "> namedFlows</ a > ;
2050- < a
2045+ < a
20512046 href ="#dom-named-flow "> NamedFlow?</ a > < a
20522047 href ="#document-getflowbyname "> getFlowByName(DOMString name)</ a > ;
20532048};
@@ -2118,13 +2113,12 @@ <h3 id=the-namedflow-interface><span class=secno>6.1. </span>The NamedFlow
21182113
21192114 < pre class =idl >
21202115interface NamedFlowCollection {
2121- readonly attribute unsigned long < a
2116+ readonly attribute unsigned long < a
21222117 href ="#dom-named-flow-collection-length "> length</ a > ;
2123- getter < a
2118+ getter < a
21242119 href ="#dom-named-flow "> NamedFlow?</ a > < a
21252120 href ="#named-flow-collection-item "> item (unsigned long index)</ a > ;
2126- };
2127- </ pre >
2121+ };</ pre >
21282122
21292123 < p > The < dfn id =dom-named-flow-collection-length > < code
21302124 class =idl > length</ code > </ dfn > attribute returns the number of items in the
@@ -2243,17 +2237,15 @@ <h3 id=the-region-interface><span class=secno>6.2. </span>The Region
22432237 which can be regions.
22442238
22452239 < pre class =idl >
2246- interface Region {
2247- readonly attribute DOMString < a
2240+ interface Region {
2241+ readonly attribute DOMString < a
22482242 href ="#dom-region-regionoverset "> regionOverset</ a > ;
2249- readonly attribute DOMString < a
2243+ readonly attribute DOMString < a
22502244 href ="#dom-region-flowfrom "> flowFrom</ a > ;
2251- sequence<< a
2245+ sequence<< a
22522246 href ="# "> Range</ a > >? < a
22532247 href ="#dom-region-getregionflowranges "> getRegionFlowRanges()</ a > ;
2254- };
2255-
2256- </ pre >
2248+ };</ pre >
22572249
22582250 < p > The < dfn id =dom-region-regionoverset > < code
22592251 class =idl > regionOverset</ code > </ dfn > attribute returns one of the
0 commit comments