8000 revising style sheet, adding 'wrap', moving 'float-offset' · simonwuelker/csswg-drafts@8d8980f · GitHub
Skip to content

Commit 8d8980f

Browse files
author
howcome
committed
revising style sheet, adding 'wrap', moving 'float-offset'
1 parent 37cc36f commit 8d8980f

1 file changed

Lines changed: 143 additions & 106 deletions

File tree

css-gcpm/Overview.src.html

Lines changed: 143 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.example img { display: block }
1313
.example { background: #ddd }
1414
body { line-height: 1.3 }
15-
.remove, .unimplemented { background: #fdd }
15+
.remove, .unimplemented { display: none }
1616

1717
table.string-set-example { font-family: monospace; border-collapse: collapse }
1818
table.string-set-example div.pre {
@@ -880,12 +880,11 @@ <h3>The ''target-text'' value</h3>
880880

881881
<h2>Footnotes</h2>
882882

883-
<p>When an element is turned into a footnote, certain magical things
884-
happen. The element is moved to the footnote area, a footnote call is
883+
<p>When an element is turned into a footnote, certain things
884+
happen: the element is moved to the footnote area, a footnote call is
885885
left behind in its place, a footnote marker is displayed before the
886886
element, and the footnote counter is incremented.
887887

888-
889888
<p>A footnote is a note typically placed at the bottom of a page that
890889
comments on, or cites, a reference. References to footnotes are marked
891890
with a <em>footnote call</em> in the main text which corresponds to
@@ -2506,10 +2505,11 @@ <h2>Paged presentations</h2>
25062505

25072506
</dl>
25082507

2508+
<!--
25092509
<p class=issue>Is "paginated" a better word?
25102510
<p class=issue>Should controls be specified on a separate property, or on an attribute (like HTML's video element)?
25112511
<p class=issue>Should the axis (x/y) be specified on a separate property?
2512-
2512+
-->
25132513

25142514
<div class=example>
25152515
<p>In this example, the root element is constrained to have the same
@@ -3257,23 +3257,22 @@ <h3>Floating inside and outside pages</h3>
32573257
<p class=issue>Should there be a way to combine float: top/bottom with left/right?
32583258
<p class=issue>Should there be a way to delete page floats that end up lonesome on pages?
32593259

3260-
<!--
32613260

3262-
<h3>Float reference</h3>
3261+
<h3>Wrapping around page floats</h3>
32633262

32643263
<table class=propdef>
32653264
<tr>
32663265
<td><em>Name:</em>
3267-
<td><dfn>float-reference</dfn>
3266+
<td><dfn>float-wrap</dfn>
32683267
<tr>
32693268
<td><em>Value:</em>
3270-
<td>auto | page
3269+
<td>none | wrap
32713270
<tr>
32723271
<td><em>Initial:</em>
3273-
<td>auto
3272+
<td>none
32743273
<tr>
32753274
<td><em>Applies to:</em>
3276-
<td>floated elements
3275+
<td>page floats
32773276
<tr>
32783277
<td><em>Inherited:</em>
32793278
<td>no
@@ -3282,108 +3281,23 @@ <h3>Float reference</h3>
32823281
<td>N/A
32833282
<tr>
32843283
<td><em>Media:</em>
3285-
<td>visual, paged
3284+
<td>visual
32863285
<tr>
32873286
<td><em>Computed&nbsp;value:</em>
3288-
<td>as specified
3287+
<td>specified value
32893288
</table>
32903289

3291-
<p>This property indicates the reference for page floats. Values are:
3292-
3293-
<dl>
3294-
<dt>auto
3295-
<dd>the column or the element is the reference
3296-
<dt>page
3297-
<dd>the page is the reference
3298-
</dl>
3299-
3300-
<p class=issue>Should this be a value on 'column-span' instead? E.g.: 'column-span: page'?
3301-
3302-
-->
3303-
3304-
<h2>Page and column floats, alternative syntax</h2>
3305-
3306-
<p>This section describes an alternative syntax for page and column floats.
3307-
3308-
<p>Four new keywords on 'float' have been added:
3290+
<p>This property indicates whether other content may wrap around a page float:
33093291

33103292
<dl>
3293+
<dt>none
33113294

3312-
<dt>left, right, top, bottom
3313-
<dd>relative to physical viewport
3314-
3315-
<dt>line-left, line-right
3316-
<dd>relative to inline axis
3317-
3318-
<dt>before, after
3319-
<dd>relative to block direction
3320-
3321-
<dt>inside, outside
3322-
<dd>as described in the previous section
3323-
3324-
<dt>footnote
3325-
<dd>as described above
3326-
3327-
<dt>columns(n)
3328-
<dd>makes the float span n columns, and sets the float context to be the multicol element
3329-
3330-
<dt>page
3331-
<dd>sets the float context to be the page
3332-
3333-
</dl>
3334-
3335-
3336-
3337-
<div class=example>
3338-
<p>Float figure to the top right corner of the multicol element, spanning two columns:
3339-
3340-
<pre>
3341-
.figure { float: top rigth columns(2); width: 100% }
3342-
</pre>
3343-
3344-
<img alt="sample rendering" src=8.png>
3345-
</div>
3346-
3347-
<div class=example>
3348-
<p>Float figure to top of the last column of the multicol element on the current page:
3349-
<pre>
3350-
.figure { float: top right columns(1) }
3351-
</pre>
3352-
3353-
<img alt="sample rendering" src=6.png>
3354-
</div>
3355-
3356-
<div class=example>
3357-
<p>Float figure to the top right of the current element, allowing other content on its side:
3358-
3359-
<pre>
3360-
.figure { float: top right; width: 60% }
3361-
</pre>
3362-
<img alt="sample rendering" src=13.png>
3363-
</div>
3364-
3365-
3366-
<div class=example>
3367-
<p>Escape the multicol element and float to the top right of the page area:
3368-
3369-
<pre>
3370-
.figure { float: top right page }
3371-
</pre>
3372-
</div>
3373-
3374-
3375-
3376-
3377-
<h2>Exclusions</h2>
3378-
3379-
<h3>Exclusions based on floats</h3>
3295+
<dd>other content may not wrap around the page float
33803296

3381-
<p>A new value on 'float' is introduced to support intrusion in columns:
3297+
<dt>wrap
33823298

3383-
<dl>
3384-
<dt>intrude
3299+
<dd>other content may wrap around the page float
33853300

3386-
<dd>The element may intrude neighboring columns; if the element is not in a multi-column element, this keyword has no effect.
33873301
</dl>
33883302

33893303
</dl>
@@ -3393,7 +3307,7 @@ <h3>Exclusions based on floats</h3>
33933307
<div class=example>
33943308

33953309
<pre class=css>
3396-
img { float: left intrude; width: 120%; }
3310+
img { float: top; column-span: 2; float-wrap: wrap; width: 120%; }
33973311
</pre>
33983312

33993313
<p>In this example, the image is wider than the column and will
@@ -3407,8 +3321,6 @@ <h3>Exclusions based on floats</h3>
34073321

34083322

34093323

3410-
3411-
34123324
<h3>The 'float-offset' property</h3>
34133325

34143326
<table class=propdef>
@@ -3532,6 +3444,131 @@ <h3>The 'float-offset' property</h3>
35323444
</div>
35333445

35343446

3447+
3448+
3449+
<!--
3450+
3451+
<h3>Float reference</h3>
3452+
3453+
<table class=propdef>
3454+
<tr>
3455+
<td><em>Name:</em>
3456+
<td><dfn>float-reference</dfn>
3457+
<tr>
3458+
<td><em>Value:</em>
3459+
<td>auto | page
3460+
<tr>
3461+
<td><em>Initial:</em>
3462+
<td>auto
3463+
<tr>
3464+
<td><em>Applies to:</em>
3465+
<td>floated elements
3466+
<tr>
3467+
<td><em>Inherited:</em>
3468+
<td>no
3469+
<tr>
3470+
<td><em>Percentages:</em>
3471+
<td>N/A
3472+
<tr>
3473+
<td><em>Media:</em>
3474+
<td>visual, paged
3475+
<tr>
3476+
<td><em>Computed&nbsp;value:</em>
3477+
<td>as specified
3478+
</table>
3479+
3480+
<p>This property indicates the reference for page floats. Values are:
3481+
3482+
<dl>
3483+
<dt>auto
3484+
<dd>the column or the element is the reference
3485+
<dt>page
3486+
<dd>the page is the reference
3487+
</dl>
3488+
3489+
<p class=issue>Should this be a value on 'column-span' instead? E.g.: 'column-span: page'?
3490+
3491+
-->
3492+
3493+
<!--
3494+
<h2>Page and column floats, alternative syntax</h2>
3495+
3496+
<p>This section describes an alternative syntax for page and column floats.
3497+
3498+
<p>Four new keywords on 'float' have been added:
3499+
3500+
<dl>
3501+
3502+
<dt>left, right, top, bottom
3503+
<dd>relative to physical viewport
3504+
3505+
<dt>line-left, line-right
3506+
<dd>relative to inline axis
3507+
3508+
<dt>before, after
3509+
<dd>relative to block direction
3510+
3511+
<dt>inside, outside
3512+
<dd>as described in the previous section
3513+
3514+
<dt>footnote
3515+
<dd>as described above
3516+
3517+
<dt>columns(n)
3518+
<dd>makes the float span n columns, and sets the float context to be the multicol element
3519+
3520+
<dt>page
3521+
<dd>sets the float context to be the page
3522+
3523+
</dl>
3524+
3525+
3526+
3527+
<div class=example>
3528+
<p>Float figure to the top right corner of the multicol element, spanning two columns:
3529+
3530+
<pre>
3531+
.figure { float: top rigth columns(2); width: 100% }
3532+
</pre>
3533+
3534+
<img alt="sample rendering" src=8.png>
3535+
</div>
3536+
3537+
<div class=example>
3538+
<p>Float figure to top of the last column of the multicol element on the current page:
3539+
<pre>
3540+
.figure { float: top right columns(1) }
3541+
</pre>
3542+
3543+
<img alt="sample rendering" src=6.png>
3544+
</div>
3545+
3546+
<div class=example>
3547+
<p>Float figure to the top right of the current element, allowing other content on its side:
3548+
3549+
<pre>
3550+
.figure { float: top right; width: 60% }
3551+
</pre>
3552+
<img alt="sample rendering" src=13.png>
3553+
</div>
3554+
3555+
3556+
<div class=example>
3557+
<p>Escape the multicol element and float to the top right of the page area:
3558+
3559+
<pre>
3560+
.figure { float: top right page }
3561+
</pre>
3562+
</div>
3563+
3564+
-->
3565+
3566+
3567+
<h2>Exclusions</h2>
3568+
3569+
<P>...
3570+
3571+
35353572
<h3>The 'clear-side' property</h3>
35363573

35373574
<table class=propdef>

0 commit comments

Comments
 (0)