Skip to content

Commit 619d475

Browse files
committed
(merge)
2 parents 2aa8913 + acc16be commit 619d475

16 files changed

Lines changed: 2227 additions & 1082 deletions

css-variables/Overview.html

Lines changed: 258 additions & 335 deletions
Large diffs are not rendered by default.

css-variables/Overview.src.html

Lines changed: 157 additions & 254 deletions
Large diffs are not rendered by default.

css3-gcpm/Overview.html

Lines changed: 165 additions & 122 deletions
Large diffs are not rendered by default.

css3-gcpm/Overview.src.html

Lines changed: 76 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ <h4>Setting named strings: the 'string-set' property</h4>
255255
<p>The name space of named strings is different from other sets of
256256
names in CSS.
257257

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+
260260

261261
<div class="example">
262262
<pre>
@@ -2097,10 +2097,12 @@ <h2>Page marks and bleed area</h2>
20972097
<h2>Bookmarks</h2>
20982098

20992099
<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>
21042106

21052107
<table class=propdef>
21062108
<tr>
@@ -2129,9 +2131,22 @@ <h2>Bookmarks</h2>
21292131
<td>specified value
21302132
</table>
21312133

2134+
21322135
<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>&lt;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+
21352150

21362151
<div class="example">
21372152
<pre>
@@ -2142,13 +2157,15 @@ <h2>Bookmarks</h2>
21422157
</div>
21432158

21442159

2160+
<h3>'bookmark-label'</h3>
2161+
21452162
<table class=propdef>
21462163
<tr>
21472164
<td><em>Name:</em>
21482165
<td><dfn>bookmark-label</dfn>
21492166
<tr>
21502167
<td><em>Value:</em>
2151-
<td>[ &lt;content-list> ]+ | none
2168+
<td>&lt;content-list> | none
21522169
<tr>
21532170
<td><em>Initial:</em>
21542171
<td>none
@@ -2169,7 +2186,18 @@ <h2>Bookmarks</h2>
21692186
<td>specified value
21702187
</table>
21712188

2172-
<p>This property specifies the label of the bookmark, i.e., the text that will represent the bookmark in the bookmark structure. &lt;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>&lt;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'.
2194+
2195+
<dt>none
2196+
2197+
<dd>no bookmark is generated
2198+
2199+
</dl>
2200+
21732201

21742202
<div class="example">
21752203
<pre>
@@ -2181,6 +2209,8 @@ <h2>Bookmarks</h2>
21812209
</pre>
21822210
</div>
21832211

2212+
<!--
2213+
21842214
<table class=propdef>
21852215
<tr>
21862216
<td><em>Name:</em>
@@ -2225,6 +2255,9 @@ <h2>Bookmarks</h2>
22252255
.example { bookmark-target: url(http://www.example.com) }
22262256
</div>
22272257
2258+
-->
2259+
2260+
<h3>'bookmark-state'</h3>
22282261

22292262
<table class=propdef>
22302263
<tr>
@@ -2569,36 +2602,44 @@ <h2>Page and column floats</h2>
25692602
<dt>bottom-corner
25702603
<dd>similar to 'top-corner', exept the box is floated to the bottom
25712604

2572-
<dt>snap(&lt;length>)
2605+
<!--
2606+
<dt>snap(&lt;length>, [top | bottom])
25732607
25742608
<dd>same as 'top' if the box is naturally near the top; same as
25752609
'bottom' if the box is naturally near the bottom. If the box naturally
25762610
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+
-->
25792614

2580-
<div class=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(&lt;length> &lt;length>? [, top | bottom | near ]?)
25822616

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'.
25872620

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>
25892628

25902629
<div class=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+
25912632
<pre>
25922633
table { float: snap }
2634+
table { float: snap(3em) }
2635+
table { float: snap(3em, bottom) }
2636+
table { float: snap(3em 2em, bottom) }
25932637
</pre>
25942638
</div>
25952639

25962640
<p class=issue>Should we define a reasonable default (say, 3em) instead of relying on implementation-specific values?
2597-
<p class=issue>Do numberic values make sense, like for orphans/widows
2598-
<p class=issue>Does the "snap" solution address all use cases for "unless-room"/"unless-fit"?
2599-
2641+
<p class=issue>Do numberic values (in addition to length values) make sense, like for orphans/widows
26002642

2601-
</dl>
26022643

26032644
<!--
26042645
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>
35783619
</pre>
35793620
</div>
35803621

3622+
<h2>Conditional text</h2>
3623+
3624+
<div class=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" }
3629+
</pre>
3630+
</div>
3631+
35813632

35823633
<h2>Conformance</h2>
35833634

@@ -3623,7 +3674,7 @@ <h2 class=no-num id=acknowledgments>Acknowledgments</h2>
36233674
Miller, Werner Donn&eacute;, Tarquin (Mark) Wilton-Jones, Michel Fortin,
36243675
Christian Roth, Brady Duga, Del Merritt, Ladd Van Tol, Tab Atkins Jr.,
36253676
Jacob Grundtvig Refstrup, James Elmore, Ian Tindale, Murakami Shinyu, Paul E.
3626-
Merrell, Philip Taylor, Brad Kemper, Peter Linss, Daniel Glazman, Tantek &#xC7;elik, Florian Rivoal, Alex Mogilevsky.</p>
3677+
Merrell, Philip Taylor, Brad Kemper, Peter Linss, Daniel Glazman, Tantek &#xC7;elik, Florian Rivoal, Alex Mogilevsky, Simon Sapin, Cameron McCormack, Liam R E Quin, Peter Moulder.</p>
36273678

36283679
<h2 class=no-num id=references>References</h2>
36293680

0 commit comments

Comments
 (0)