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
<p>This property specifies the label of the bookmark, i.e., the text
2174
-
that will represent the bookmark in the bookmark structure. The keyword values are defined on the 'string-set' property.
2174
+
that will represent the bookmark in the bookmark structure.
2175
+
<content-list> is defined on the 'string-set' property.
2175
2176
2176
2177
<divclass="example">
2177
2178
<pre>
@@ -2571,11 +2572,41 @@ <h2>Page and column floats</h2>
2571
2572
<dt>bottom-corner
2572
2573
<dd>similar to 'top-corner', exept the box is floated to the bottom
2573
2574
2574
-
<dt>snap
2575
-
<dd>same as 'top' if the box is naturally near the top; same as 'bottom' if the box is naturally near the bottom. The 'widows'/'orphans' properties may be consulted to determine if the box is near the top/bottom. If
2576
-
the box naturally leads to a (page/column) break, the box is floated to the top of the next page/column.
2575
+
<dt>snap(<length>)
2576
+
2577
+
<dd>same as 'top' if the box is naturally near the top; same as
2578
+
'bottom' if the box is naturally near the bottom. If the box naturally
2579
+
leads to a (page/column) break, the box is floated to the top of the
2580
+
next page/column. The length value specifies how far from the
2581
+
top/bottom the element can be influenced.
2582
+
2583
+
<divclass=example>
2584
+
<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.
2585
+
2586
+
<pre>
2587
+
table { float: snap(3em) }
2588
+
</pre>
2589
+
</div>
2590
+
2591
+
<p>If the functional notation is not used, an implementation-dependent value is used.
2592
+
2593
+
<divclass=example>
2594
+
<pre>
2595
+
table { float: snap }
2596
+
</pre>
2597
+
</div>
2598
+
2599
+
<pclass=issue>Should we define a reasonable default (say, 3em) instead of relying on implementation-specific values?
2600
+
<pclass=issue>Do numberic values make sense, like for orphans/widows
2601
+
<pclass=issue>Does the "snap" solution address all use cases for "unless-room"/"unless-fit"?
2602
+
2603
+
2577
2604
</dl>
2578
2605
2606
+
<!--
2607
+
The 'widows'/'orphans' properties may be consulted to determine if the box is near the top/bottom.
2608
+
-->
2609
+
2579
2610
<p>These new keywords only apply in paged media; in continous media declarations with these keywords are ignored.
0 commit comments