Skip to content

Commit a208ed7

Browse files
committed
adding first-lines()
1 parent 1e3e02d commit a208ed7

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

css3-gcpm/Overview.src.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3084,7 +3084,6 @@ <h3>Exclusions based on rendered content</h3>
30843084
exclude-level: 0.5;
30853085
margin-top: -0.2em;
30863086
}
3087-
30883087
&lt;p>&lt;span id="dropcaps">Many&lt;/span> instances ...&lt;/p>
30893088
&lt;p>The text ....&lt;/p>
30903089
</pre>
@@ -3435,6 +3434,27 @@ <h3>Page pseudo-elements</h3>
34353434
<p class=issue>This may no longer be needed du to generic page selectors
34363435
-->
34373436

3437+
<h2>Selecting lines</h2>
3438+
3439+
<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.
3440+
3441+
<div class=example>
3442+
<img alt="sample rendering" src=regions.png>
3443+
3444+
<pre>
3445+
article { columns: 3 }
3446+
img, p.lead:first-lines(3) {
3447+
column-span: 2;
3448+
}
3449+
3450+
&lt;article>
3451+
&lt;img>
3452+
&lt;p class=lead>
3453+
&lt;p>... &lt;p>... &lt;p>... &lt;p>... &lt;p>...
3454+
&lt;/article>
3455+
</pre>
3456+
</div>
3457+
34383458

34393459
<h2>Conformance</h2>
34403460

0 commit comments

Comments
 (0)