@@ -235,6 +235,9 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
235235
236236 < li class =no-num > < a href ="#change-log "> Change Log</ a >
237237 < ul class =toc >
238+ < li class =no-num > < a href ="#since-june-20th-2013 "> Since June 20th
239+ 2013</ a >
240+
238241 < li class =no-num > < a href ="#since-may-3rd-2012 "> Since May 3rd 2012</ a >
239242
240243 < li class =no-num > < a href ="#since-december-13th-2011 "> Since December 13th
@@ -252,7 +255,7 @@ <h2 id=intro><span class=secno>1. </span>Introduction</h2>
252255
253256 < h2 id =definitions > < span class =secno > 2. </ span > Definitions</ h2 >
254257
255- < p > < dfn id =float-area > Float area</ dfn >
258+ < p > < dfn id =float-area > float area</ dfn >
256259
257260 < p > The area used for wrapping content around a float element. By default,
258261 the float area is the float element's < a
@@ -277,17 +280,21 @@ <h2 id=shapes><span class=secno>3. </span>Shapes</h2>
277280 < h3 id =relation-to-box-model-and-float-behavior > < span class =secno > 3.1.
278281 </ span > Relation to the box model and float behavior</ h3 >
279282
280- < p > While the boundaries used for wrapping inline flow content outside an
283+ < p > While the boundaries used for wrapping inline flow content outside a
281284 float can be defined using shapes, the actual box model does not change.
282- If the element has specified margins, borders or paddings they will be
285+ If the element has specified margins, borders or padding they will be
283286 computed and rendered according to the < a href ="#CSS3BOX "
284287 rel =biblioentry > [CSS3BOX]<!--{{!CSS3BOX}}--> </ a > module.
285288
286- < p > Float positioning is an exception. If a float has an outside shape, its
287- positioning is resolved as < a
288- href ="http://www.w3.org/TR/CSS2/visuren.html#float-position "> defined</ a >
289- in < a href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > but the
290- outside shape's bounding box is used in lieu of the float's margin box.
289+ < p > When a shape is used to define a < a href ="#float-area "> float area</ a > ,
290+ the shape is clipped to the float's margin box. In other words, a shape
291+ can only ever reduce a < a href ="#float-area "> float area</ a > , not increase
292+ it. When a shape reduces a < a href ="#float-area "> float area</ a > such that
293+ a line box that would be normally be affected by the float would not
294+ intersect the < a href ="#float-area "> float area</ a > at all, the available
295+ space for the line box is constrained by the farthest margin edge of the
296+ float. For a left float this would be the left margin edge, and for a
297+ right float this would be the right margin edge.
291298
292299 < div class =example >
293300 < p > In the following example the left and right floating < code
@@ -326,6 +333,30 @@ <h3 id=relation-to-box-model-and-float-behavior><span class=secno>3.1.
326333 < img alt ="Using the shape-outside property with a float "
327334 class =singleImgExample src ="images/float-shape-outside.png "> </ div >
328335
336+ < div class =example >
337+ < p > Since shapes are clipped to the float's margin box, adding this shape
338+ to the left float above would result in the same rendering.
339+
340+ < p >
341+
342+ < pre > < code class =html >
343+ shape-outside: polygon(0,0 500%,500% 0,500%);
344+ </ code > </ pre >
345+ </ div >
346+
347+ < div class =example >
348+ < p > A shape with no extent will create a < a href ="#float-area "> float
349+ area</ a > with no extent. The shape below applied to a left float will
350+ allow inline content to flow through the float's box, but the line boxes
351+ will be constrained by the float's left margin edge.
352+
353+ < p >
354+
355+ < pre > < code class =html >
356+ shape-outside: rectangle(0,0,0%,0%);
357+ </ code > </ pre >
358+ </ div >
359+
329360 < h3 id =basic-shapes-from-svg-syntax > < span class =secno > 3.2. </ span > Basic
330361 Shapes</ h3 >
331362
@@ -631,7 +662,7 @@ <h3 id=shapes-from-image><span class=secno>3.3. </span>Shapes from Image</h3>
631662 </ ol >
632663
633664 < p > It is perfectly possible to display an image and use a different image
634- for its float area.
665+ for its < a href =" # float-area " > float area</ a > .
635666
636667 < p > In the figure below, the alpha-channel threshold is represented by the
637668 dotted line around the CSS logo and the 35px shape-margin is visible
@@ -725,7 +756,8 @@ <h4 id=shape-outside-property><span class=secno>3.4.1. </span>The ‘<a
725756 < dl >
726757 < dt > < dfn id =auto title ="'shape-outside'!!'auto' "> auto</ dfn >
727758
728- < dd > The float area uses the margin box as normal.
759+ < dd > The < a href ="#float-area "> float area</ a > uses the margin box as
760+ normal.
729761 </ dl >
730762
731763 < dl >
@@ -1030,16 +1062,6 @@ <h3 class=no-num id=normative-references>Normative references</h3>
10301062 < dd style ="display: none "> <!-- keeps the doc valid if the DL is empty -->
10311063 <!---->
10321064
1033- < dt id =CSS21 > [CSS21]
1034-
1035- < dd > Bert Bos; et al. < a
1036- href ="http://www.w3.org/TR/2011/REC-CSS2-20110607 "> < cite > Cascading Style
1037- Sheets Level 2 Revision 1 (CSS 2.1) Specification.</ cite > </ a > 7 June
1038- 2011. W3C Recommendation. URL: < a
1039- href ="http://www.w3.org/TR/2011/REC-CSS2-20110607 "> http://www.w3.org/TR/2011/REC-CSS2-20110607</ a >
1040- </ dd >
1041- <!---->
1042-
10431065 < dt id =CSS3BG > [CSS3BG]
10441066
10451067 < dd > Bert Bos; Elika J. Etemad; Brad Kemper. < a
@@ -1114,7 +1136,7 @@ <h2 class=no-num id=index>Index</h2>
11141136 < li > ellipse, < a href ="#ellipse "
11151137 title ="section 3.2.1. "> < strong > 3.2.1.</ strong > </ a >
11161138
1117- < li > Float area, < a href ="#float-area "
1139+ < li > float area, < a href ="#float-area "
11181140 title ="section 2. "> < strong > 2.</ strong > </ a >
11191141
11201142 < li > inset-rectangle, < a href ="#inset-rectangle "
@@ -1248,8 +1270,22 @@ <h2 class=no-num id=property-index>Property index</h2>
12481270
12491271 < h2 class =no-num id =change-log > Change Log</ h2 >
12501272
1273+ < h3 class =no-num id =since-june-20th-2013 > Since < a
1274+ href ="http://www.w3.org/TR/2013/WD-css-shapes-1-20130620/ "> June 20th
1275+ 2013</ a > </ h3 >
1276+
1277+ < ul >
1278+ < li > Change float positioning to be unaffected by shape-outside
1279+
1280+ < li > Shapes on floats clipped to float's margin box
1281+
1282+ < li > Inline content constrained to at least the float's farthest margin
1283+ edge
1284+ </ ul >
1285+
12511286 < h3 class =no-num id =since-may-3rd-2012 > Since < a
1252- href ="http://www.w3.org/TR/2012/WD-css-shapes-20120503/ "> May 3rd 2012</ a > </ h3 >
1287+ href ="http://www.w3.org/TR/2012/WD-css3-exclusions-20120503/ "> May 3rd
1288+ 2012</ a > </ h3 >
12531289
12541290 < ul >
12551291 < li > Postpone shapes from SVG elements to a future Shapes level
@@ -1285,8 +1321,8 @@ <h3 class=no-num id=since-may-3rd-2012>Since <a
12851321 </ ul >
12861322
12871323 < h3 class =no-num id =since-december-13th-2011 > Since < a
1288- href ="http://www.w3.org/TR/2011/WD-css-shapes -20111213/ "> December 13th
1289- 2011</ a > </ h3 >
1324+ href ="http://www.w3.org/TR/2011/WD-css3-exclusions -20111213/ "> December
1325+ 13th 2011</ a > </ h3 >
12901326
12911327 < ul >
12921328 < li > Clarified processing model.
0 commit comments