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 5 May 2010</ h2 >
25+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 3 June 2010</ h2 >
2626
2727 < dl >
2828 < dt > This version:
2929
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>-->
30+ < dd > <!--<a href="http://www.w3.org/TR/2010/WD-css3-background-20100603 ">http://www.w3.org/TR/2010/ED-css3-background-20100603 </a>-->
3131 < a
3232 href ="http://dev.w3.org/csswg/css3-background "> http://dev.w3.org/csswg/css3-background</ a >
3333
@@ -3704,27 +3704,15 @@ <h3 id=the-box-shadow><span class=secno>6.2. </span>The ‘<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.
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.
3707+ < li > The third length is a blur radius. Negative values are not allowed. If
3708+ the blur radius is zero, the shadow's edge is sharp. Otherwise, the
3709+ larger the value, the more the shadow's edge is blurred. See below.
37143710
37153711 < li > The fourth length is a spread radius. Positive values cause the shadow
37163712 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.
3713+ values cause the shadow shape to contract. See below. < span
3714+ class =note > Note that for inner shadows, expanding the shadow (creating
3715+ more shadow area) means contracting the shadow's perimeter shape.</ span >
37283716
37293717 < li > The color is the color of the shadow.
37303718
@@ -3745,15 +3733,35 @@ <h3 id=the-box-shadow><span class=secno>6.2. </span>The ‘<a
37453733
37463734 < p > If the box has a nonzero < span class =property > ‘< a
37473735 href ="#border-radius "> < code
3748- class =property > border-radius</ code > </ a > ’</ span > , the shadow is
3736+ class =property > border-radius</ code > </ a > ’</ span > , the shadow shape is
37493737 rounded in the same way. The ‘< a href ="#border-image "> < code
37503738 class =property > border-image</ code > </ a > ’ does not affect the shape of
37513739 the box-shadow.
37523740
3753- < p > If an element has multiple boxes, all of them get drop shadows, but
3754- shadows are only drawn where borders would also be drawn; see ‘< a
3755- href ="#box-decoration-break "> < code
3756- class =property > box-decoration-break</ code > </ a > ’.
3741+ < p > If a spread radius is defined, it increases the size of the shadow in
3742+ the direction normal to the shadow's edge by the specified amount.
3743+ However, for corners with a zero border-radius, the corner remains sharp,
3744+ i.e. the operation is equivalent to scaling the border-box. The UA may
3745+ approximate the transformed shadow perimeter shape by outsetting
3746+ (insetting, for inner shadows) the shadow's straight edges by the spread
3747+ radius and increasing (decreasing, for inner shadows) and flooring at zero
3748+ the corner radii by the same amount. In either case, the effective width
3749+ and height of the shadow shape is floored at zero. (A zero-sized shadow
3750+ shape would cause an outer shadow to disappear, and an inner shadow to
3751+ cover the entire padding-box.)
3752+
3753+ < p > The blur radius is perpendicular to and centered on the shadow's edge
3754+ and defines a gradient color transition ranging from the full shadow color
3755+ at the radius endpoint inside the shadow to fully transparent at the
3756+ endpoint outside it. The exact algorithm for the blur transition is not
3757+ specified.
3758+
3759+ < div class =example >
3760+ < p > The example below demonstrates the effects of the spread and blur radii
3761+ on the shadow:</ p >
3762+
3763+ < p class =figure > < img src =spread-blur.png > </ p >
3764+ </ div >
37573765
37583766 < p > The shadow effects are applied front-to-back: the first shadow is on top
37593767 and the others are layered behind. Shadows do not influence layout and may
@@ -3763,6 +3771,11 @@ <h3 id=the-box-shadow><span class=secno>6.2. </span>The ‘<a
37633771 are drawn immediately above the background of that element (below the
37643772 borders and border image, if any).
37653773
3774+ < p > If an element has multiple boxes, all of them get drop shadows, but
3775+ shadows are only drawn where borders would also be drawn; see ‘< a
3776+ href ="#box-decoration-break "> < code
3777+ class =property > box-decoration-break</ code > </ a > ’.
3778+
37663779 < p > Shadows do not trigger scrolling or increase the size of the scrollable
37673780 area.
37683781
0 commit comments