Skip to content

Commit deffbcb

Browse files
committed
adding alternative page float syntax
1 parent 6ea60a2 commit deffbcb

1 file changed

Lines changed: 75 additions & 6 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 75 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,9 +2532,7 @@ <h3>Page shift effects</h3>
25322532
</div>
25332533

25342534

2535-
<h2>Page floats</h2>
2536-
2537-
<p class=issue>Is this a misnomer?
2535+
<h2>Page and column floats</h2>
25382536

25392537
<p>Images and figures are sometimes displayed at the top or bottom of
25402538
pages and columns. This specificaton adds new keywords on the 'float'
@@ -2600,7 +2598,7 @@ <h2>Page floats</h2>
26002598

26012599

26022600
<div class=example>
2603-
<p>Float figure to top/bottom of the last column of the multicol element on that page:
2601+
<p>Float figure to top of the last column of the multicol element on the current page:
26042602
<pre>
26052603
.figure { float: top-corner }
26062604
</pre>
@@ -2685,14 +2683,14 @@ <h3>Float modifiers</h3>
26852683
<dd>'left'/'right' can be used in combination with 'top'/'bottom'/'top-corner'/'bottom-corner' to allow other content to flow around the box.
26862684

26872685
<div class=example>
2688-
26892686
<pre>
26902687
.figure { float: top right; width: 60% }
26912688
</pre>
26922689
<img alt="sample rendering" src=13.png>
2693-
26942690
</div>
26952691

2692+
2693+
26962694
</dl>
26972695

26982696

@@ -2721,6 +2719,77 @@ <h3>Floating inside and outside pages</h3>
27212719
</div>
27222720

27232721

2722+
2723+
<h2>Page and column floats, alternative syntax</h2>
2724+
2725+
<p>This section describes an alternative syntax for page and column floats.
2726+
2727+
<p>Four new keywords on 'float' have been added:
2728+
2729+
<dl>
2730+
2731+
<dt>left, right, top, bottom
2732+
<dd>relafive to physical screen
2733+
2734+
<dt>line-left, line-right
2735+
<dd>relative to inline axis
2736+
2737+
<dt>before, after
2738+
<dd>relative to block direction
2739+
2740+
<dt>inside, outside
2741+
<dd>as described in the previous section
2742+
2743+
<dt>columns(n)
2744+
<dd>makes the float span n columns; sets the float context to be the multicol element
2745+
2746+
<dt>page
2747+
<dd>sets the float context to be the page, not the element
2748+
2749+
</dl>
2750+
2751+
2752+
2753+
<div class=example>
2754+
<p>Float figure to the top right corner of the multicol element, spanning two columns:
2755+
2756+
<pre>
2757+
.figure { float: top rigth columns(2); width: 100% }
2758+
</pre>
2759+
2760+
<img alt="sample rendering" src=8.png>
2761+
</div>
2762+
2763+
<div class=example>
2764+
<p>Float figure to top of the last column of the multicol element on the current page:
2765+
<pre>
2766+
.figure { float: top right columns(1) }
2767+
</pre>
2768+
2769+
<img alt="sample rendering" src=6.png>
2770+
</div>
2771+
2772+
<div class=example>
2773+
<p>Float figure to the top right of the current element, allowing other content on its side:
2774+
2775+
<pre>
2776+
.figure { float: top right; width: 60% }
2777+
</pre>
2778+
<img alt="sample rendering" src=13.png>
2779+
</div>
2780+
2781+
2782+
<div class=example>
2783+
<p>Escape the multicol element and float to the top right of the page area:
2784+
2785+
<pre>
2786+
.figure { float: top right page }
2787+
</pre>
2788+
</div>
2789+
2790+
2791+
2792+
27242793
<h2>Exclusions</h2>
27252794

27262795
<h3>Exclusions based on floats</h3>

0 commit comments

Comments
 (0)