|
63 | 63 | </p> |
64 | 64 | <h1 class="p-name no-ref" id=title>CSS Shapes Module Level 1</h1> |
65 | 65 | <h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft, |
66 | | - <span class=dt-updated><span class=value-title title=20140103>3 January 2014</span></span></span></h2> |
| 66 | + <span class=dt-updated><span class=value-title title=20140104>4 January 2014</span></span></span></h2> |
67 | 67 | <div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-shapes/>http://www.w3.org/TR/css-shapes/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a> |
68 | 68 | <dt>Feedback:</dt> |
69 | 69 | <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-shapes%5D%20feedback">www-style@w3.org</a> |
@@ -767,6 +767,36 @@ <h2 class="heading settled heading" data-level=5 id=shapes-from-box-values><span |
767 | 767 | </div> |
768 | 768 | </div> |
769 | 769 |
|
| 770 | + <div class=example> |
| 771 | + |
| 772 | +<p> The difference between normal float wrapping |
| 773 | + and wrapping around the shape defined |
| 774 | + by the margin-box value is that |
| 775 | + the margin-box shape includes corner shaping. |
| 776 | + Take the 100px square with 10px padding, |
| 777 | + border and margins, |
| 778 | + but with a border-radius of 60px. |
| 779 | + If you make a left float out of it, |
| 780 | + content normally wraps in this manner: |
| 781 | + |
| 782 | + <div class=figure> |
| 783 | + <img alt="Text wrapping around float with no shape" src=images/normal-wrap.png> |
| 784 | + <p class=caption>Normal float wrapping</p> |
| 785 | + </div> |
| 786 | + |
| 787 | +<p> If you add a margin-box shape to the float, |
| 788 | + then content wraps around the rounded margin-box corners. |
| 789 | + |
| 790 | + <pre> <code class=css> |
| 791 | + shape-outside: margin-box; |
| 792 | + </code> |
| 793 | +</pre> |
| 794 | + <div class=figure> |
| 795 | + <img alt="Text wrapping around float with margin-box shape" src=images/margin-box-wrap.png> |
| 796 | + <p class=caption>Float wrapping with margin-box</p> |
| 797 | + </div> |
| 798 | + </div> |
| 799 | + |
770 | 800 | <h2 class="heading settled heading" data-level=6 id=declaring-shapes><span class=secno>6 </span><span class=content> |
771 | 801 | Declaring Shapes</span><a class=self-link href=#declaring-shapes></a></h2> |
772 | 802 |
|
@@ -976,7 +1006,8 @@ <h2 class="no-num heading settled heading" id=change-log><span class=content> |
976 | 1006 | <h3 class="no-num heading settled heading" id=20131203><span class=content> |
977 | 1007 | Since <a href=http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/>December 3rd 2013</a></span><a class=self-link href=#20131203></a></h3> |
978 | 1008 | <ul> |
979 | | - <li>change auto to none for shape-outside</li> |
| 1009 | + <li>Added a margin-box example</li> |
| 1010 | + <li>Change auto to none for shape-outside</li> |
980 | 1011 | <li>Defined shape-box instead of redefining box</li> |
981 | 1012 | <li>Clarified that shape from image may produce more than one path</li> |
982 | 1013 | </ul> |
|
0 commit comments