|
11 | 11 | <meta content="CSS Generated Content for Paged Media Module" |
12 | 12 | name=dcterms.title> |
13 | 13 | <meta content=text name=dcterms.type> |
14 | | - <meta content=2013-09-10 name=dcterms.date> |
| 14 | + <meta content=2013-09-11 name=dcterms.date> |
15 | 15 | <meta content="Håkon Wium Lie" name=dcterms.creator> |
16 | 16 | <meta content=W3C name=dcterms.publisher> |
17 | 17 | <meta content="http://dev.w3.org/csswg/css3-gcpm/" name=dcterms.identifier> |
|
42 | 42 |
|
43 | 43 | <h1>CSS Generated Content for Paged Media Module</h1> |
44 | 44 |
|
45 | | - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 10 September 2013</h2> |
| 45 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 11 September 2013</h2> |
46 | 46 |
|
47 | 47 | <dl> |
48 | 48 | <dt>This version: |
49 | 49 |
|
50 | 50 | <dd><a |
51 | | - href="http://dev.w3.org/csswg/css3-gcpm/">http://www.w3.org/TR/2013/ED-css3-gcpm-20130910/</a> |
| 51 | + href="http://dev.w3.org/csswg/css3-gcpm/">http://www.w3.org/TR/2013/ED-css3-gcpm-20130911/</a> |
52 | 52 |
|
53 | 53 | <dt>Latest version: |
54 | 54 |
|
@@ -4219,18 +4219,43 @@ <h3 id=page-and-column-pseudo-elements><span class=secno>13.3. |
4219 | 4219 | </span>‘<code class=property>page</code>’ and ‘<code |
4220 | 4220 | class=property>column</code>’ pseudo-elements</h3> |
4221 | 4221 |
|
| 4222 | + <p>The ‘<code class=css>page()</code>’ and ‘<code |
| 4223 | + class=css>column()</code>’ pseudo-element allows the selection of pages, |
| 4224 | + columns, and elements within. |
| 4225 | + |
| 4226 | + <div class=example> |
| 4227 | + <pre> |
| 4228 | +article::column(2n) { /* select every other column of an article */ |
| 4229 | + ... |
| 4230 | +} |
| 4231 | +</pre> |
| 4232 | + </div> |
| 4233 | + |
| 4234 | + <div class=example> |
| 4235 | + <pre> |
| 4236 | +article::page(left) { /* select all left pages in an article */ |
| 4237 | + background: pink; |
| 4238 | +} |
| 4239 | +</pre> |
| 4240 | + </div> |
| 4241 | + |
4222 | 4242 | <div class=example> |
4223 | 4243 | <pre> |
4224 | 4244 | article::page(left) p { /* select all p elements that appear on left pages in an article */ |
4225 | | - ... |
| 4245 | + text-align: left; |
4226 | 4246 | } |
4227 | 4247 | </pre> |
4228 | 4248 | </div> |
4229 | 4249 |
|
| 4250 | + <p>Several syntax variations are possible. |
| 4251 | + |
4230 | 4252 | <div class=example> |
4231 | 4253 | <pre> |
4232 | | -article::column(2n) { /* select every other column of an article */ |
| 4254 | +@page :left { |
4233 | 4255 | ... |
| 4256 | + { |
| 4257 | + p { text-align: left } |
| 4258 | + } |
4234 | 4259 | } |
4235 | 4260 | </pre> |
4236 | 4261 | </div> |
|
0 commit comments