|
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=20140106>6 January 2014</span></span></span></h2> |
| 66 | + <span class=dt-updated><span class=value-title title=20140110>10 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> |
@@ -730,15 +730,30 @@ <h2 class="heading settled heading" data-level=4 id=shapes-from-image><span clas |
730 | 730 | <h2 class="heading settled heading" data-level=5 id=shapes-from-box-values><span class=secno>5 </span><span class=content> |
731 | 731 | Shapes from Box Values</span><a class=self-link href=#shapes-from-box-values></a></h2> |
732 | 732 |
|
733 | | -<p> Shapes can be defined by reference to edges in the <a href=http://www.w3.org/TR/CSS21/box.html#box-dimensions>CSS Box Model</a>. These edges include <a href=http://www.w3.org/TR/css3-background/#corner-shaping>border-radius curvature</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a>. The <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>"><shape-box></a> value extends the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-backgrounds-3/#box title="<box>"><box></a> value to include <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>. Its syntax is: |
| 733 | +<p> Shapes can be defined |
| 734 | + by reference to edges in the |
| 735 | + <a href=http://www.w3.org/TR/CSS21/box.html#box-dimensions>CSS Box Model</a>. |
| 736 | + These edges include |
| 737 | + <a href=http://www.w3.org/TR/css3-background/#corner-shaping>border-radius curvature</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a> |
| 738 | + from the used border-radius values. |
| 739 | + The <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>"><shape-box></a> value extends the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-backgrounds-3/#box title="<box>"><box></a> value |
| 740 | + to include <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>. |
| 741 | + Its syntax is: |
734 | 742 |
|
735 | 743 | <pre> <dfn class=css-code data-dfn-type=type data-export="" id=typedef-shape-box><a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>"><shape-box></a><a class=self-link href=#typedef-shape-box></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-backgrounds-3/#box title="<box>"><box></a> | <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a> |
736 | 744 | </pre> |
737 | 745 | <p> The definitions of the values are: |
738 | 746 |
|
739 | 747 | <p> The <dfn data-dfn-type=dfn data-noexport="" id=margin-box>margin-box<a class=self-link href=#margin-box></a></dfn> value defines the shape |
740 | 748 | enclosed by the outside margin edge. |
741 | | - The corner radii of this shape are determined by the corresponding border-radius and margin values. If the ratio of <code>border-radius/margin</code> is 1 or more, then the margin box corner radius is <code>border-radius + margin</code>. If the ratio of <code>border-radius/margin</code> is less than 1, then the margin box corner radius is <code>border-radius + (margin * (1 + (ratio-1)^3))</code>. |
| 749 | + The corner radii of this shape are determined |
| 750 | + by the corresponding border-radius and margin values. |
| 751 | + If the ratio of <code>border-radius/margin</code> is 1 or more, |
| 752 | + then the margin box corner radius is |
| 753 | + <code>border-radius + margin</code>. |
| 754 | + If the ratio of <code>border-radius/margin</code> is less than 1, |
| 755 | + then the margin box corner radius is |
| 756 | + <code>border-radius + (margin * (1 + (ratio-1)^3))</code>. |
742 | 757 |
|
743 | 758 | <p> The <dfn data-dfn-type=dfn data-noexport="" id=border-box>border-box<a class=self-link href=#border-box></a></dfn> value defines the shape |
744 | 759 | enclosed by the outside border edge. |
|
0 commit comments