|
22 | 22 |
|
23 | 23 | <h1>CSS Backgrounds and Borders Module Level 3</h1> |
24 | 24 |
|
25 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 April 2010</h2> |
| 25 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 May 2010</h2> |
26 | 26 |
|
27 | 27 | <dl> |
28 | 28 | <dt>This version: |
29 | 29 |
|
30 | | - <dd><!--<a href="http://www.w3.org/TR/2010/WD-css3-background-20100428">http://www.w3.org/TR/2010/ED-css3-background-20100428</a>--> |
| 30 | + <dd><!--<a href="http://www.w3.org/TR/2010/WD-css3-background-20100505">http://www.w3.org/TR/2010/ED-css3-background-20100505</a>--> |
31 | 31 | <a |
32 | 32 | href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a> |
33 | 33 |
|
@@ -3704,14 +3704,27 @@ <h3 id=the-box-shadow><span class=secno>6.2. </span>The ‘<a |
3704 | 3704 | <li>The second length is the vertical offset. A positive value offsets the |
3705 | 3705 | shadow down, a negative one up. |
3706 | 3706 |
|
3707 | | - <li>The third length is a blur radius. Negative values are not allowed. If |
3708 | | - it is 0, the shadow is sharp, otherwise the larger the value, the more |
3709 | | - the shadow is blurred. The exact algorithm is not specified. |
| 3707 | + <li>The third length is a blur radius. Negative values are not allowed. |
| 3708 | + The blur radius is perpendicular to and centered on the shadow's edge and |
| 3709 | + defines a gradient color transition ranging from the full shadow color at |
| 3710 | + the radius endpoint inside the shadow to fully transparent at the |
| 3711 | + endpoint outside it: if the blur radius is 0, the shadow's edge is sharp, |
| 3712 | + otherwise the larger the value, the more the shadow is blurred. The exact |
| 3713 | + algorithm for the blur transition is not specified. |
3710 | 3714 |
|
3711 | 3715 | <li>The fourth length is a spread radius. Positive values cause the shadow |
3712 | | - to grow in all directions by the specified radius. Negative values cause |
3713 | | - the shadow to shrink. The shadow should not change shape when a spread |
3714 | | - radius is applied: sharp corners should remain sharp. |
| 3716 | + shape to expand in all directions by the specified radius. Negative |
| 3717 | + values cause the shadow shape to contract. For corners with a zero |
| 3718 | + border-radius, the corner remains sharp. Otherwise the spread radius |
| 3719 | + outsets the edge of the shadow by the amount of the spread radius in the |
| 3720 | + direction perpendicular to the shadow's edge. <span class=note>Note that |
| 3721 | + for inner shadows, expanding the shadow means shrinking the shadow's |
| 3722 | + perimeter.</span> The UA may approximate the spread shape by outsetting |
| 3723 | + (insetting, for inner shadows) the shadow's straight edges by the spread |
| 3724 | + radius and increasing (decreasing, for inner shadows) and flooring at |
| 3725 | + zero the corner radii by the same amount. If both a blur radius and a |
| 3726 | + spread radius are defined, the blur is applied to the resulting shape |
| 3727 | + after the spread is applied. |
3715 | 3728 |
|
3716 | 3729 | <li>The color is the color of the shadow. |
3717 | 3730 |
|
|
0 commit comments