|
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 21 June 2010</h2> |
| 25 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 24 August 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-20100621">http://www.w3.org/TR/2010/ED-css3-background-20100621</a>--> |
| 30 | + <dd><!--<a href="http://www.w3.org/TR/2010/WD-css3-background-20100824">http://www.w3.org/TR/2010/ED-css3-background-20100824</a>--> |
31 | 31 | <a |
32 | 32 | href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a> |
33 | 33 |
|
@@ -3722,9 +3722,9 @@ <h3 id=the-box-shadow><span class=secno>7.2. </span>The ‘<a |
3722 | 3722 | <li>The second length is the vertical offset. A positive value offsets the |
3723 | 3723 | shadow down, a negative one up. |
3724 | 3724 |
|
3725 | | - <li>The third length is a blur distance. Negative values are not allowed. |
3726 | | - If the blur value is zero, the shadow's edge is sharp. Otherwise, the |
3727 | | - larger the value, the more the shadow's edge is blurred. See below. |
| 3725 | + <li>The third length is a blur radius. Negative values are not allowed. If |
| 3726 | + the blur value is zero, the shadow's edge is sharp. Otherwise, the larger |
| 3727 | + the value, the more the shadow's edge is blurred. See below. |
3728 | 3728 |
|
3729 | 3729 | <li>The fourth length is a spread distance. Positive values cause the |
3730 | 3730 | shadow shape to expand in all directions by the specified radius. |
@@ -3777,11 +3777,17 @@ <h3 id=the-box-shadow><span class=secno>7.2. </span>The ‘<a |
3777 | 3777 |
|
3778 | 3778 | <p>A non-zero blur distance indicates that the resulting shadow should be |
3779 | 3779 | blurred, such as by a Gaussian filter. The exact algorithm is not defined; |
3780 | | - however for a long, straight shadow edge, this should create a color |
3781 | | - transition the length of the blur distance that is perpendicular to and |
3782 | | - centered on the shadow's edge, and that ranges from the full shadow color |
3783 | | - at the radius endpoint inside the shadow to fully transparent at the |
3784 | | - endpoint outside it. |
| 3780 | + however the resulting shadow must approximate (with each pixel being |
| 3781 | + within 5% of its expected value) the image that would be generated by |
| 3782 | + applying to the shadow a Gaussian blur with a standard deviation equal to |
| 3783 | + the blur radius |
| 3784 | + |
| 3785 | + <p class=note>Note this means for a long, straight shadow edge, the blur |
| 3786 | + radius will create a visibly apparent color transition approximately the |
| 3787 | + twice length of the blur radius that is perpendicular to and centered on |
| 3788 | + the shadow's edge, and that ranges from the full shadow color at the |
| 3789 | + endpoint inside the shadow to fully transparent at the endpoint outside |
| 3790 | + it. |
3785 | 3791 |
|
3786 | 3792 | <div class=example> |
3787 | 3793 | <p>The example below demonstrates the effects of spread and blur on the |
|
0 commit comments