Skip to content

Commit c6d7067

Browse files
author
howcome
committed
Adding Brad's syntax
1 parent 1e1a4e8 commit c6d7067

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

css-gcpm/Overview.src.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,22 +3620,49 @@ <h3>Page groups</h2>
36203620

36213621
<h3>'page' and 'column' pseudo-elements</h3>
36223622

3623+
<p>The 'page()' and 'column()' pseudo-element allows the selection of
3624+
pages, columns, and elements within.
3625+
3626+
3627+
<div class=example>
3628+
<pre>
3629+
article::column(2n) { /* select every other column of an article */
3630+
...
3631+
}
3632+
</pre>
3633+
</div>
3634+
3635+
<div class=example>
3636+
<pre>
3637+
article::page(left) { /* select all left pages in an article */
3638+
background: pink;
3639+
}
3640+
</pre>
3641+
</div>
3642+
3643+
36233644
<div class=example>
36243645
<pre>
36253646
article::page(left) p { /* select all p elements that appear on left pages in an article */
3626-
...
3647+
text-align: left;
36273648
}
36283649
</pre>
36293650
</div>
36303651

3652+
<p>Several syntax variations are possible.
3653+
36313654
<div class=example>
36323655
<pre>
3633-
article::column(2n) { /* select every other column of an article */
3656+
@page :left {
36343657
...
3658+
{
3659+
p { text-align: left }
3660+
}
36353661
}
36363662
</pre>
36373663
</div>
36383664

3665+
36393666
<h2>Selecting lines</h2>
36403667

36413668
<p>The 'first-line' pseudo-element selects the first formatted line of an element. The 'first-lines(n)' pseudo-element selects the first n formatted lines of an element.

0 commit comments

Comments
 (0)