[css3-background] blur radius changes implemented in Mozilla

Just to let people know, I've implemented the changes to the
definition of blur radius [1] for box-shadow in Mozilla (and the
same change for text-shadow).  This means that the blur for
text-shadow and box-shadow is about 1.410 times larger than with
Mozilla's old behavior.  (For full details of what changed, see
[2].)  These changes can be tested in the latest (Sept. 12 or newer)
mozilla-central nightly builds (http://nightly.mozilla.org/) and
will also be in Firefox 4.0 beta 6 when that comes out.

I wanted to mention this here so that those involved in the
discussion of what the blur radius should mean can, if they want,
check that the change produces the results that it was expected to
produce.

(A test I was using for comparison is
http://dbaron.org/css/test/2010/shadow-blur , which has a box-shadow
example on the left and a canvas example on the right.  Note that
the rules for canvas [3] are different than the rules for
box-shadow when the blur is larger than 8px.)

I've also added support for 'box-shadow' without the prefix.  Given
that we resolved to move to CR [4], I expect the spec to be in CR
well before Firefox 4.0 ships.

-David

[1] http://dev.w3.org/csswg/css3-background/#the-box-shadow
    starting from "the resulting shadow must approximate"
[2] http://hg.mozilla.org/mozilla-central/rev/830111e10951
[3] http://www.w3.org/TR/2010/WD-2dcontext-20100624/#dom-context-2d-shadowblur
    item 4.1 in the list
[4] http://lists.w3.org/Archives/Public/www-style/2010Sep/0002.html

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Sunday, 12 September 2010 20:26:19 UTC