Skip to content

Commit 6f3d2ee

Browse files
committed
adding more example
1 parent d96aa61 commit 6f3d2ee

1 file changed

Lines changed: 67 additions & 66 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,6 +3192,20 @@ <h3>Turning columns into regions</h3>
31923192
</pre>
31933193
</div>
31943194

3195+
3196+
<div class=example>
3197+
<pre>
3198+
div.chapter::column(1) {
3199+
transform: rotate(6.5deg);
3200+
}
3201+
div.chapter::column(2) {
3202+
transform: rotate(-5.5deg) translate(0, 40px);
3203+
}
3204+
</pre>
3205+
3206+
<img src="regions_rotated_columns.jpg">
3207+
</div>
3208+
31953209
<!--
31963210
<div class=example>
31973211
Consider this markup:
@@ -3245,83 +3259,22 @@ <h3>Turning columns into regions</h3>
32453259
</div>
32463260
-->
32473261

3248-
3249-
3250-
3251-
3252-
<h2>The 'first-page' pseudo-element</h2>
3253-
3254-
3255-
<p>The 'first-page' pseudo-element is used to apply styling to the
3256-
part of an element that ends up on the starting page for that element.
3257-
If the whole element appears on the starting page, 'first-page'
3258-
applies to the whole element. The following properties apply to
3259-
:first-page pseudo-elements: column properties, background properties,
3260-
margin properties, border properties, and padding properties. UAs may
3261-
apply other properties as well.
3262+
<h2>Regions and Exclusions examples</h2>
32623263

32633264
<div class=example>
3264-
3265-
<p>In this example, there will be one column on the starting page of
3266-
each chapter, while subsequent pages will have two columns:
3267-
3268-
<pre>
3269-
div.chapter { columns: 2 }
3270-
div.chapter::first-page { columns: 1 }
3271-
</pre>
3272-
3273-
</div>
3274-
3275-
<div class=example>
3276-
3277-
<p>In this example, padding is added on the left side on the starting
3278-
page of each chapter:
3279-
3280-
<pre>
3281-
div.chapter { break-before: left }
3282-
div.chapter::first-page { padding-left: 4em }
3283-
</pre>
3284-
3265+
<img src=exclusion_ordering_z_order.png>
32853266
</div>
32863267

3287-
3288-
3289-
<h2>Selecting columns</h2>
3290-
3291-
<p class=issue>This is sketchy.
3292-
3293-
<p>Pseudo-elements are introduced to apply styling to the part of an
3294-
element that ends up on a certain page of column of that element. The
3295-
'column(n)' pseudo-element selects columns, the 'column(n,p)' pseudo-element selects columns on certain pages, nad the 'page(n)'
3296-
psedo-element select pages.
3297-
32983268
<div class=example>
3299-
<pre>
3300-
div.chapter::column(3) /* the third column of the element */
3301-
div.chapter::column(2n) /* all even columns of the element */
3302-
div.chapter::column(2,2) /* second column on second page */
3303-
div.chapter::column(*,2) /* all columns on the second page */
3304-
div.chapter::page(2) /* second page of the element */
3305-
div.chapter::page(2-4) /* select page 2, 3, and 4 */
3306-
div.chapter::page(2)::column(2) /* second column, but only if it appears on the second page */
3307-
</pre>
3269+
<img src=exclusion_ordering.png>
33083270
</div>
33093271

33103272
<div class=example>
3311-
<pre>
3312-
div.chapter::column(1) {
3313-
transform: rotate(6.5deg);
3314-
}
3315-
div.chapter::column(2) {
3316-
transform: rotate(-5.5deg) translate(0, 40px);
3317-
}
3318-
</pre>
3319-
3320-
<img src="regions_rotated_columns.jpg">
3273+
<img src=shapes_CSS2.1_MBP.png>
33213274
</div>
33223275

33233276

3324-
<h2>Selecting pages </h2>
3277+
<h2>Selecting pages</h2>
33253278

33263279
<p>In CSS 2.0, <a href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and right pages</a> can be selected. This specification adds support for selecting the nth page in the document, or the nth named page.
33273280

@@ -3378,6 +3331,54 @@ <h2>Selecting pages </h2>
33783331
</div>
33793332

33803333

3334+
<h3>The 'first-page' pseudo-element</h3>
3335+
3336+
<p class=issue>This may no longer be needed du to generic page selectors
3337+
3338+
<p>The 'first-page' pseudo-element is used to apply styling to the
3339+
part of an element that ends up on the starting page for that element.
3340+
If the whole element appears on the starting page, 'first-page'
3341+
applies to the whole element. The following properties apply to
3342+
:first-page pseudo-elements: column properties, background properties,
3343+
margin properties, border properties, and padding properties. UAs may
3344+
apply other properties as well.
3345+
3346+
<div class=example>
3347+
3348+
<p>In this example, there will be one column on the starting page of
3349+
each chapter, while subsequent pages will have two columns:
3350+
3351+
<pre>
3352+
div.chapter { columns: 2 }
3353+
div.chapter::first-page { columns: 1 }
3354+
</pre>
3355+
3356+
</div>
3357+
3358+
<div class=example>
3359+
3360+
<p>In this example, padding is added on the left side on the starting
3361+
page of each chapter:
3362+
3363+
<pre>
3364+
div.chapter { break-before: left }
3365+
div.chapter::first-page { padding-left: 4em }
3366+
</pre>
3367+
3368+
</div>
3369+
3370+
3371+
<div class=example>
3372+
<pre>
3373+
div.chapter::page(2) /* second page of the element */
3374+
div.chapter::page(2-4) /* select page 2, 3, and 4 */
3375+
div.chapter::page(2)::column(2) /* second column, but only if it appears on the second page */
3376+
</pre>
3377+
</div>
3378+
3379+
3380+
3381+
33813382
<h2>Conformance</h2>
33823383

33833384
<p>TBD

0 commit comments

Comments
 (0)