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
<spanstyle="padding-left: 30px">tuv wxy z. Abc</span><br>
2916
-
de fghi jk klmop qrst<br>
2917
-
uvwxyzabcdefghijklmn<br>
2918
-
2919
-
</div>
2920
-
2921
-
<divclass="col" style="left: 350px">
2922
-
<p>
2923
-
Ab cde fgh i jkl. Mno<br>
2924
-
pqr stu vw xyz. A bc<br>
2925
-
def g hij klm nopqrs<br>
2926
-
tuv wxy z. Abc de fg<br>
2927
-
hi jklmno. Pqrstu vw<br>
2928
-
x yz. Abc def ghi jkl.<br>
2929
-
2930
-
M nop qrst uv wx yz.<br>
2931
-
2932
-
Ab cde fgh i jkl. Mno<br>
2933
-
pqr stu vw xyz.
2934
-
2935
-
</div>
2936
-
2937
-
2938
-
<divclass=repstyle="width: 200px"></div>
2939
-
<divclass=gapstyle="left: 150px"></div>
2940
-
<divclass=gapstyle="left: 325px"></div>
2941
-
</div>
2942
-
2943
-
</div>
2944
-
2945
-
2946
-
2947
-
2948
-
2949
-
<divclass=example>
2950
-
2951
-
<preclass=css>
2952
-
img { float: right; width: 120% }
2953
-
</pre>
2954
-
2955
-
<p>In this example, the image naturally appears in the last column. Due to being floated to the right, the image will intrude into the neighboring column to the left.
<p>Further, the 'float' property is extended to accept a
3038
2918
comma-separated list of sets of keywords. If the first set of keywords
3039
2919
cannot be honored with the element remaining on the current page, the
@@ -3050,6 +2930,7 @@ <h2>Page floats</h2>
3050
2930
</pre>
3051
2931
</div>
3052
2932
2933
+
-->
3053
2934
3054
2935
<p>The new values have the following meaning:
3055
2936
@@ -3063,14 +2944,36 @@ <h2>Page floats</h2>
3063
2944
<dd>On a left page, this value is synonymous with 'left', On a right page, this value is synonymous with 'right'.
3064
2945
3065
2946
<dt>page
3066
-
<dd>Indicates that the page area is the containing block for the element.
3067
-
2947
+
<dd>Indicates that the page area is the flow root for the element.
3068
2948
3069
2949
<dt>multicol
3070
-
<dd>Indicates that the multicol element is the containing block for the element. The float may will intrude into neighboring columns.
2950
+
<dd>Indicates that the multicol element is the flow root for the element.
2951
+
2952
+
<dt>intrude
2953
+
<dd>The element may intrude neighboring columns; if the element is not in a multi-column element, this keyword has no effect.
2954
+
2955
+
<dt>unless-room
2956
+
<dd>if the element can be laid out in its natural position without causing a page break, it should be laid out there disregarding the 'float' property; in other cases the other values on 'float' will dertermine its floating behaviour
2957
+
2958
+
<divclass="example">
2959
+
<p>Float the figure to the top of the next page, unless it fits in its natural position without causing a page break:
2960
+
2961
+
<pre>
2962
+
.figure {
2963
+
float: top next page unless-room;
2964
+
}
2965
+
</pre>
2966
+
</div>
3071
2967
3072
-
<dtclass=issue>intrude
3073
-
<dd>if the float is in a multicol element, it may intrude into neighboring columns. (If the element is not in a multicol element, it will always intrude.)
2968
+
<divclass="example">
2969
+
<p>Hide the element unless it fits in its natural position without causing a page break:
2970
+
2971
+
<pre>
2972
+
.figure {
2973
+
float: hide unless-room;
2974
+
}
2975
+
</pre>
2976
+
</div>
3074
2977
3075
2978
3076
2979
<dt>top
@@ -3104,7 +3007,7 @@ <h2>Page floats</h2>
3104
3007
<ul>
3105
3008
<li>only one horizontal keyword can appear in a set
3106
3009
<li>only one vertical keyword can appear in a set
3107
-
<li>at least one horizontal or vertical keyword must appear, except that 'none', 'hide', and 'footnote' must appear alone
3010
+
<li>at least one horizontal or vertical keyword must appear, except that ''none'', ''hide'', and ''footnote'' must appear alone
3108
3011
<li>'next' may appear once along with 'page'
3109
3012
<li>keywords can appear in any order
3110
3013
</ul>
@@ -3238,6 +3141,131 @@ <h2>Page floats</h2>
3238
3141
width calculations are vice versa.
3239
3142
3240
3143
3144
+
<h3>Float intrusion in multicol elements</h3>
3145
+
3146
+
<p>In multi-colum layouts [[CSS3MULTICOL]], floats appear within columns; they never intrude into neighboring columns.
3147
+
3148
+
<divclass=example>
3149
+
3150
+
<preclass=css>
3151
+
img { float: left; width: 120% }
3152
+
</pre>
3153
+
3154
+
<p>In this example, the image is wider than the column and will
3155
+
therefore intrude into the neighboring column. At the bottom of the
3156
+
middle column is a long word that is clipped in the middle of the
<spanstyle="padding-left: 30px">tuv wxy z. Abc</span><br>
3180
+
de fghi jk klmop qrst<br>
3181
+
uvwxyzabcdefghijklmn<br>
3182
+
3183
+
</div>
3184
+
3185
+
<divclass="col" style="left: 350px">
3186
+
<p>
3187
+
Ab cde fgh i jkl. Mno<br>
3188
+
pqr stu vw xyz. A bc<br>
3189
+
def g hij klm nopqrs<br>
3190
+
tuv wxy z. Abc de fg<br>
3191
+
hi jklmno. Pqrstu vw<br>
3192
+
x yz. Abc def ghi jkl.<br>
3193
+
3194
+
M nop qrst uv wx yz.<br>
3195
+
3196
+
Ab cde fgh i jkl. Mno<br>
3197
+
pqr stu vw xyz.
3198
+
3199
+
</div>
3200
+
3201
+
3202
+
<divclass=repstyle="width: 200px"></div>
3203
+
<divclass=gapstyle="left: 150px"></div>
3204
+
<divclass=gapstyle="left: 325px"></div>
3205
+
</div>
3206
+
3207
+
</div>
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
<divclass=example>
3214
+
3215
+
<preclass=css>
3216
+
img { float: right; width: 120% }
3217
+
</pre>
3218
+
3219
+
<p>In this example, the image naturally appears in the last column. Due to being floated to the right, the image will intrude into the neighboring column to the left.
0 commit comments