Skip to content

Commit a49ad16

Browse files
committed
Overview.src.html
1 parent 0b8752a commit a49ad16

2 files changed

Lines changed: 43 additions & 15 deletions

File tree

css3-background/Overview.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
<h1>CSS Backgrounds and Borders Module Level 3</h1>
2424

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>
2626

2727
<dl>
2828
<dt>This version:
2929

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>-->
3131
<a
3232
href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a>
3333

@@ -3704,14 +3704,27 @@ <h3 id=the-box-shadow><span class=secno>6.2. </span>The &lsquo;<a
37043704
<li>The second length is the vertical offset. A positive value offsets the
37053705
shadow down, a negative one up.
37063706

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.
37103714

37113715
<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.
37153728

37163729
<li>The color is the color of the shadow.
37173730

css3-background/Overview.src.html

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,15 +2681,30 @@ <h3 id="the-box-shadow">The 'box-shadow' property</h3>
26812681
offsets the shadow down, a negative one up.
26822682

26832683
<li>The third length is a blur radius. Negative values are not
2684-
allowed. If it is 0, the shadow is sharp, otherwise the larger the
2685-
value, the more the shadow is blurred. The exact algorithm is not
2686-
specified.
2684+
allowed. The blur radius is perpendicular to and centered on the
2685+
shadow's edge and defines a gradient color transition ranging from
2686+
the full shadow color at the radius endpoint inside the shadow to
2687+
fully transparent at the endpoint outside it: if the blur radius
2688+
is 0, the shadow's edge is sharp, otherwise the larger the value,
2689+
the more the shadow is blurred. The exact algorithm for the blur
2690+
transition is not specified.
26872691

26882692
<li>The fourth length is a spread radius. Positive values cause
2689-
the shadow to grow in all directions by the specified radius.
2690-
Negative values cause the shadow to shrink. The shadow should not
2691-
change shape when a spread radius is applied: sharp corners should
2692-
remain sharp.
2693+
the shadow shape to expand in all directions by the specified
2694+
radius. Negative values cause the shadow shape to contract. For
2695+
corners with a zero border-radius, the corner remains sharp.
2696+
Otherwise the spread radius outsets the edge of the shadow by
2697+
the amount of the spread radius in the direction perpendicular
2698+
to the shadow's edge.
2699+
<span class="note">Note that for inner shadows, expanding the
2700+
shadow means shrinking the shadow's perimeter.</span>
2701+
The UA may approximate the spread shape by outsetting (insetting,
2702+
for inner shadows) the shadow's straight edges by the spread
2703+
radius and increasing (decreasing, for inner shadows) and
2704+
flooring at zero the corner radii by the same amount.
2705+
2706+
If both a blur radius and a spread radius are defined, the blur
2707+
is applied to the resulting shape after the spread is applied.
26932708

26942709
<li>The color is the color of the shadow.
26952710

0 commit comments

Comments
 (0)