|
12 | 12 | rel=dcterms.rights> |
13 | 13 | <meta content="CSS Regions Module Level 3" name=dcterms.title> |
14 | 14 | <meta content=text name=dcterms.type> |
15 | | - <meta content=2012-11-16 name=dcterms.issued> |
| 15 | + <meta content=2012-11-27 name=dcterms.issued> |
16 | 16 | <meta content="Vincent Hardy" name=dcterms.creator> |
17 | 17 | <meta content="Alex Mogilevsky" name=dcterms.creator> |
18 | 18 | <meta content="Alan Stearns" name=dcterms.creator> |
19 | 19 | <meta content=W3C name=dcterms.publisher> |
20 | | - <meta content="http://www.w3.org/TR/2012/ED-css3-regions-20121116/" |
| 20 | + <meta content="http://www.w3.org/TR/2012/ED-css3-regions-20121127/" |
21 | 21 | name=dcterms.identifier> |
22 | 22 | <link href="../shared/style/default.css" rel=stylesheet type="text/css"> |
23 | 23 | <script defer=defer |
|
50 | 50 |
|
51 | 51 | <h1 id=css-regions-module>CSS Regions Module Level 3</h1> |
52 | 52 |
|
53 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 November |
| 53 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 November |
54 | 54 | 2012</h2> |
55 | 55 |
|
56 | 56 | <dl> |
57 | 57 | <dt>This version: |
58 | 58 |
|
59 | 59 | <dd><a |
60 | | - href="http://www.w3.org/TR/2012/ED-css3-regions-20121116/">http://www.w3.org/csswg/css3-regions</a> |
| 60 | + href="http://www.w3.org/TR/2012/ED-css3-regions-20121127/">http://www.w3.org/csswg/css3-regions</a> |
61 | 61 |
|
62 | 62 | <dt>Latest version: |
63 | 63 |
|
@@ -3225,12 +3225,19 @@ <h2 class=no-num id=intro-example-code>Appendix A. Example Code for |
3225 | 3225 | Introduction</h2> |
3226 | 3226 |
|
3227 | 3227 | <p>The following is one possible way to code the example from the <a |
3228 | | - href="#introduction">introduction</a>. This code uses grid cells to |
3229 | | - define, size and position the region areas but table layout, absolute |
3230 | | - positioning, or any other CSS layout facility could be used. |
| 3228 | + href="#introduction">introduction</a>. This code uses grid cells in a |
| 3229 | + custom element to define, size and position the region areas but table |
| 3230 | + layout, absolute positioning, or any other CSS layout facility could be |
| 3231 | + used. |
3231 | 3232 |
|
3232 | 3233 | <div class=example> |
3233 | 3234 | <pre> |
| 3235 | + |
| 3236 | +<head> |
| 3237 | + <title>Regions Intro Example</title> |
| 3238 | + <link rel="components" href="x-fancy-layout.html"> |
| 3239 | +</head> |
| 3240 | + |
3234 | 3241 | <style> |
3235 | 3242 | #grid { |
3236 | 3243 | width: 80vw; |
@@ -3272,45 +3279,57 @@ <h2 class=no-num id=intro-example-code>Appendix A. Example Code for |
3272 | 3279 | #region1, #region2, #region3, #region4 { |
3273 | 3280 | <strong>flow-from: article_flow;</strong> |
3274 | 3281 | } |
3275 | | - |
3276 | 3282 | </style> |
3277 | 3283 |
|
3278 | 3284 | <span |
3279 | 3285 | class=highlight><!-- |
3280 | | - The following code element is the content to flow |
3281 | | - through the region chain. |
| 3286 | + The body element is extended with the |
| 3287 | + layout template from the link above. |
3282 | 3288 | --></span> |
| 3289 | +<body is="x-fancy-layout"> |
3283 | 3290 |
|
3284 | | -<article> |
3285 | | - <h1>Introduction</h1> |
3286 | | - <p>This is an example ...</p> |
3287 | | - |
3288 | | - <h2>More Details</h2> |
3289 | | - <p>This illustrates ...</p> |
3290 | | - <p>Then, the example ...</p> |
3291 | | - <p>Finally, this ...</p> |
3292 | | -</article> |
| 3291 | +<span |
| 3292 | + class=highlight><!-- |
| 3293 | + The article element is the content to flow |
| 3294 | + through the region chain. In the content |
| 3295 | + markup, it's followed by the image the |
| 3296 | + region chain will flow around. |
| 3297 | +--></span> |
| 3298 | + <article> |
| 3299 | + <h1>Introduction</h1> |
| 3300 | + <p>This is an example ...</p> |
| 3301 | + |
| 3302 | + <h2>More Details</h2> |
| 3303 | + <p>This illustrates ...</p> |
| 3304 | + <p>Then, the example ...</p> |
| 3305 | + <p>Finally, this ...</p> |
| 3306 | + </article> |
| 3307 | + <div id="boxA"></div> |
| 3308 | +</body> |
3293 | 3309 |
|
3294 | 3310 | <span |
3295 | 3311 | class=highlight><!-- |
3296 | | - For this example, we layout the regions with a grid. |
3297 | | - Regions could be pseudo-elements and could be laid out |
3298 | | - with another layout module (e.g., flexible boxes) |
| 3312 | + In a separate file, we lay out the regions with a grid |
| 3313 | + inside a custom element template from Web Components. |
3299 | 3314 | --></span> |
3300 | | -<div id="grid"> |
3301 | | - <div id="region1"></div> |
3302 | | - <div id="region2"></div> |
3303 | | - <div id="boxA"></div> |
3304 | | - <div id="region3"></div> |
3305 | | -</div> |
3306 | | -<div id="region4"></div> |
| 3315 | +<element name="x-fancy-layout" extends="body"> |
| 3316 | + <template> |
| 3317 | + <div id="grid"> |
| 3318 | + <div id="region1"></div> |
| 3319 | + <div id="region2"></div> |
| 3320 | + <content></content> |
| 3321 | + <div id="region3"></div> |
| 3322 | + </div> |
| 3323 | + <div id="region4"></div> |
| 3324 | + </template> |
| 3325 | +</element> |
3307 | 3326 | </pre> |
3308 | 3327 | </div> |
3309 | 3328 |
|
3310 | 3329 | <div class=note><span class=note-prefix>Note </span> |
3311 | | - <p> Note that a multi-column element is used for #region2, which is a bit |
3312 | | - gratuitous here (because grid cells could be used). The reason to use a |
3313 | | - multi-column element is to illustrate that regions can be multi-column. |
| 3330 | + <p> A multi-column element is used for #region2, which is a bit gratuitous |
| 3331 | + here (because grid cells could be used). The reason to use a multi-column |
| 3332 | + element is to illustrate that regions can be multi-column. |
3314 | 3333 | </div> |
3315 | 3334 |
|
3316 | 3335 | <h2 class=no-num id=references>References</h2> |
|
0 commit comments