You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css3-gcpm/Overview.src.html
+76-25Lines changed: 76 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -255,8 +255,8 @@ <h4>Setting named strings: the 'string-set' property</h4>
255
255
<p>The name space of named strings is different from other sets of
256
256
names in CSS.
257
257
258
-
<p>The 'string-set' property copies text as well as white-space into
259
-
the named string.
258
+
<p>The textual content is processed as if 'white-space: normal' had been set.
259
+
260
260
261
261
<divclass="example">
262
262
<pre>
@@ -2097,10 +2097,12 @@ <h2>Page marks and bleed area</h2>
2097
2097
<h2>Bookmarks</h2>
2098
2098
2099
2099
<p>Some document formats have the capability of holding bookmarks.
2100
-
Bookmarks are typically shown outside the document itself, often a
2101
-
tree-structured and clickable table of contents to help navigate in
2102
-
the electronic version of the document. To generate bookmarks, these
2103
-
properties are defined:
2100
+
Bookmarks are typically shown outside the document itself, often in a
2101
+
tree-structured and clickable table of contents. To generate
2102
+
bookmarks, these properties are defined: 'bookmark-level',
2103
+
'bookmark-label', and 'bookmark-state'.
2104
+
2105
+
<h3>'bookmark-level'</h3>
2104
2106
2105
2107
<tableclass=propdef>
2106
2108
<tr>
@@ -2129,9 +2131,22 @@ <h2>Bookmarks</h2>
2129
2131
<td>specified value
2130
2132
</table>
2131
2133
2134
+
2132
2135
<p>This property describes what level a certain bookmark has in a
2133
-
hierarchical bookmark structure. The highest level is ''1'', then
2134
-
''2'', ''3'' etc.
2136
+
hierarchical bookmark structure. The values are:
2137
+
2138
+
<dl>
2139
+
2140
+
<dt>none
2141
+
2142
+
<dd>no bookmark is generated
2143
+
2144
+
<dt><integer>
2145
+
2146
+
<dd>Indicates the level of the bookmark; the highest level is ''1'', then ''2'', ''3'' etc. A bookmark will be generated only if 'bookmark-label' also has a value different from 'none'.
2147
+
2148
+
</dl>
2149
+
2135
2150
2136
2151
<divclass="example">
2137
2152
<pre>
@@ -2142,13 +2157,15 @@ <h2>Bookmarks</h2>
2142
2157
</div>
2143
2158
2144
2159
2160
+
<h3>'bookmark-label'</h3>
2161
+
2145
2162
<tableclass=propdef>
2146
2163
<tr>
2147
2164
<td><em>Name:</em>
2148
2165
<td><dfn>bookmark-label</dfn>
2149
2166
<tr>
2150
2167
<td><em>Value:</em>
2151
-
<td>[ <content-list> ]+ | none
2168
+
<td><content-list> | none
2152
2169
<tr>
2153
2170
<td><em>Initial:</em>
2154
2171
<td>none
@@ -2169,7 +2186,18 @@ <h2>Bookmarks</h2>
2169
2186
<td>specified value
2170
2187
</table>
2171
2188
2172
-
<p>This property specifies the label of the bookmark, i.e., the text that will represent the bookmark in the bookmark structure. <content-list> is defined on the 'string-set' property.
2189
+
<p>This property specifies the label of the bookmark, i.e., the text that will represent the bookmark in the bookmark structure. The values are:
2190
+
2191
+
<dl>
2192
+
2193
+
<dt><content-list>, as defined on the 'string-set' property. A bookmark will be generated only if 'bookmark-level' also has a value different from 'none'.
@@ -2569,36 +2602,44 @@ <h2>Page and column floats</h2>
2569
2602
<dt>bottom-corner
2570
2603
<dd>similar to 'top-corner', exept the box is floated to the bottom
2571
2604
2572
-
<dt>snap(<length>)
2605
+
<!--
2606
+
<dt>snap(<length>, [top | bottom])
2573
2607
2574
2608
<dd>same as 'top' if the box is naturally near the top; same as
2575
2609
'bottom' if the box is naturally near the bottom. If the box naturally
2576
2610
leads to a (page/column) break, the box is floated to the top of the
2577
-
next page/column. The length value specifies how far from the
2578
-
top/bottom the element can be influenced.
2611
+
next page/column. The first optionaloptional length value specifies how far from the
2612
+
top/bottom the element can be influenced, The second
2613
+
-->
2579
2614
2580
-
<divclass=example>
2581
-
<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.
2615
+
<dt>snap(<length> <length>? [, top | bottom | near ]?)
2582
2616
2583
-
<pre>
2584
-
table { float: snap(3em) }
2585
-
</pre>
2586
-
</div>
2617
+
<dd><p>Makes the element float to the top or bottom if it naturally appears within a certain distance from the top or bottom. The length value(s) specifies the maxium distance from the top/bottom that an element must be within in order to be floated; one length value specifies the distance from both the top and the bottom, two length values specify the distance from the top and bottom, respectively. If an element is within the specified distance from both the top and the bottom, bottom wins.
2618
+
2619
+
<p>The optional keyword value specifies where the element is floated: top, bottom, or the nearest of the two. The initial value is 'near'.
2587
2620
2588
-
<p>If the functional notation is not used, an implementation-dependent value is used.
2621
+
<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.
2622
+
2623
+
<dt>snap
2624
+
2625
+
<dd>same as <tt>snap(2em, near)</tt>
2626
+
2627
+
</dl>
2589
2628
2590
2629
<divclass=example>
2630
+
<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.
2631
+
2591
2632
<pre>
2592
2633
table { float: snap }
2634
+
table { float: snap(3em) }
2635
+
table { float: snap(3em, bottom) }
2636
+
table { float: snap(3em 2em, bottom) }
2593
2637
</pre>
2594
2638
</div>
2595
2639
2596
2640
<pclass=issue>Should we define a reasonable default (say, 3em) instead of relying on implementation-specific values?
2597
-
<pclass=issue>Do numberic values make sense, like for orphans/widows
2598
-
<pclass=issue>Does the "snap" solution address all use cases for "unless-room"/"unless-fit"?
2599
-
2641
+
<pclass=issue>Do numberic values (in addition to length values) make sense, like for orphans/widows
2600
2642
2601
-
</dl>
2602
2643
2603
2644
<!--
2604
2645
The 'widows'/'orphans' properties may be consulted to determine if the box is near the top/bottom.
@@ -3578,6 +3619,16 @@ <h2>Selecting lines</h2>
3578
3619
</pre>
3579
3620
</div>
3580
3621
3622
+
<h2>Conditional text</h2>
3623
+
3624
+
<divclass=example>
3625
+
<pre>
3626
+
a:target-layout(attr(href url), same-page) { content: " on this page" }
3627
+
a:target-layout(attr(href url), next-page) { content: " on the next page" }
3628
+
a:target-layout(attr(href url), previous-page) { content: " on the previous page" }
Miller, Werner Donné, Tarquin (Mark) Wilton-Jones, Michel Fortin,
3624
3675
Christian Roth, Brady Duga, Del Merritt, Ladd Van Tol, Tab Atkins Jr.,
3625
3676
Jacob Grundtvig Refstrup, James Elmore, Ian Tindale, Murakami Shinyu, Paul E.
3626
-
Merrell, Philip Taylor, Brad Kemper, Peter Linss, Daniel Glazman, Tantek Çelik, Florian Rivoal, Alex Mogilevsky.</p>
3677
+
Merrell, Philip Taylor, Brad Kemper, Peter Linss, Daniel Glazman, Tantek Çelik, Florian Rivoal, Alex Mogilevsky, Simon Sapin, Cameron McCormack, Liam R E Quin, Peter Moulder.</p>
0 commit comments