Skip to content

Commit 87ab0b4

Browse files
committed
fixing typos; adding chapter heading; adding section on conditional text
1 parent 859321c commit 87ab0b4

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,14 +2094,16 @@ <h2>Page marks and bleed area</h2>
20942094

20952095

20962096

2097-
<h2>Bookmarks: 'bookmark-level', </h2>
2097+
<h2>Bookmarks</h2>
20982098

20992099
<p>Some document formats have the capability of holding bookmarks.
21002100
Bookmarks are typically shown outside the document itself, often in a
21012101
tree-structured and clickable table of contents. To generate
21022102
bookmarks, these properties are defined: 'bookmark-level',
21032103
'bookmark-label', and 'bookmark-state'.
21042104

2105+
<h3>'bookmark-level'</h3>
2106+
21052107
<table class=propdef>
21062108
<tr>
21072109
<td><em>Name:</em>
@@ -2155,6 +2157,8 @@ <h2>Bookmarks: 'bookmark-level', </h2>
21552157
</div>
21562158

21572159

2160+
<h3>'bookmark-label'</h3>
2161+
21582162
<table class=propdef>
21592163
<tr>
21602164
<td><em>Name:</em>
@@ -2253,6 +2257,8 @@ <h2>Bookmarks: 'bookmark-level', </h2>
22532257
22542258
-->
22552259

2260+
<h3>'bookmark-state'</h3>
2261+
22562262
<table class=propdef>
22572263
<tr>
22582264
<td><em>Name:</em>
@@ -2610,13 +2616,14 @@ <h2>Page and column floats</h2>
26102616

26112617
<p>The optional keyword value specifies where the element is floated: top, bottom, or the nearest of the two. The initial value is 'near'.
26122618

2619+
<p>An element is considered to be a float if it has a snap() value, even if the element does not appear within the specified distance. This way, it can be determined whether an element is float or not without laying out the document.
2620+
26132621
<dt>snap
26142622

26152623
<dd>same as <tt>snap(2em, near)</tt>
26162624

26172625
</dl>
26182626

2619-
26202627
<div class=example>
26212628
<p>In this example, tables will snap to the top/bottom if the top/bottom of the border box is closer than '3em' from the top/bottom of the page/column.
26222629

@@ -2630,7 +2637,6 @@ <h2>Page and column floats</h2>
26302637

26312638
<p class=issue>Should we define a reasonable default (say, 3em) instead of relying on implementation-specific values?
26322639
<p class=issue>Do numberic values (in addition to length values) make sense, like for orphans/widows
2633-
<p class=issue>is an element with a snap() value considered to be a float? only when it really floats, or always?
26342640

26352641

26362642
<!--
@@ -3611,6 +3617,16 @@ <h2>Selecting lines</h2>
36113617
</pre>
36123618
</div>
36133619

3620+
<h2>Conditional text</h2>
3621+
3622+
<div class=example>
3623+
<pre>
3624+
a:target-layout(attr(href url), same-page) { content: " on this page" }
3625+
a:target-layout(attr(href url), next-page) { content: " on the next page" }
3626+
a:target-layout(attr(href url), previous-page) { content: " on the previous page" }
3627+
</pre>
3628+
</div>
3629+
36143630

36153631
<h2>Conformance</h2>
36163632

0 commit comments

Comments
 (0)