gecko-dev/layout/reftests/box-shadow
L. David Baron d022f13c66 Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6
This fixes the multiplication by 1.5 in
gfxAlphaBoxBlur::CalculateBlurRadius (originally added in changeset
ce9f05b57b95 for bug 467518) to work correctly.  It was previously a
multiplication by 1 due to integer division.  CalculateBlurRadius
previously multiplied by 1.880; it now multiplies by 2.820.

This changes canvas shadow handling to multiply shadowBlur by 2 before
taking its square root, as described in the spec.  This means that
canvas shadow blurs 8px or smaller are 1.5 times larger than they were
previously (due to the CalculateBlurRadius change), and canvas shadow
blurs larger than 8px are 2.121 times larger than they were previously
(due to the CalculateBlurRadius change *and* the additional factor of
sqrt(2)).

This changes text-shadow and -moz-box-shadow handling to use
CalculateBlurRadius on half of the value given instead of passing the
value through directly.  This means that text-shadow and box-shadow
blurs are multiplied by 1.410 relative to their old sizes.  It also
means that we round rather than floor, so that the effect that used to
be drawn by a blur in the range 1px to 1.99px is now drawn by a blur
anywhere in the range 0.36px to 1.05px, the effect that used to be drawn
by a blur in the range 2px to 2.99px is now drawn by a blur anywhere in
the range 1.06px to 1.77px, what used to be a drawn by a blur in the
range 3px to 3.99px is now drawn by a blur anywhere in the range 1.78px
to 2.47px, etc.
2010-09-11 09:27:12 -07:00
..
boxshadow-basic-ref.html
boxshadow-basic.html
boxshadow-blur-2-notref.html Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6 2010-09-11 09:27:12 -07:00
boxshadow-blur-2-ref.html Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6 2010-09-11 09:27:12 -07:00
boxshadow-blur-2.html Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6 2010-09-11 09:27:12 -07:00
boxshadow-blur-notref2.html Replace float by CGFloat to fix BoxShadows on 64-bit OS X + added reftest. b=562616 r=jmuizelaar 2010-06-09 00:11:38 -04:00
boxshadow-blur-notref.html
boxshadow-blur.html
boxshadow-button-ref.html Bug 475197. -moz-box-shadow needs to be hooked up to buttons and fieldsets since they have custom background painting code --- reftest. 2009-01-28 22:28:40 +13:00
boxshadow-button.html Bug 475197. -moz-box-shadow needs to be hooked up to buttons and fieldsets since they have custom background painting code --- reftest. 2009-01-28 22:28:40 +13:00
boxshadow-dynamic-ref.xul Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-dynamic.xul Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-fileupload-ref.html Bug 475197. box-shadow should work on file input controls. r+sr=roc 2009-01-30 20:10:25 +13:00
boxshadow-fileupload.html Bug 475197. box-shadow should work on file input controls. r+sr=roc 2009-01-30 20:10:25 +13:00
boxshadow-inner-basic-ref.svg Bug 559426: Replace unreliable HTML reference for boxshadow-inner-basic with an SVG file that does exactly the same drawing operations as the test. r=roc 2010-05-11 12:18:42 -07:00
boxshadow-inner-basic.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-mixed-ref.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-mixed.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-multiple-ref.html
boxshadow-multiple.html
boxshadow-onecorner-ref.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-onecorner.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-rounded-spread-ref.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-rounded-spread.html Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6 2010-09-09 08:21:47 -07:00
boxshadow-rounding-ref.html Bug 445741. Round rects consistently to avoid a gap between an element and its shadow. r+sr=roc 2009-01-05 13:41:01 +13:00
boxshadow-rounding.html Bug 445741. Round rects consistently to avoid a gap between an element and its shadow. r+sr=roc 2009-01-05 13:41:01 +13:00
boxshadow-skiprect-ref.html Bug 544099 - Highly optimise -moz-box-shadow for common cases by allowing layout to specify an area where blurring is not needed r=roc,joe 2010-04-18 13:13:10 +10:00
boxshadow-skiprect.html Bug 544099 - Highly optimise -moz-box-shadow for common cases by allowing layout to specify an area where blurring is not needed r=roc,joe 2010-04-18 13:13:10 +10:00
boxshadow-spread-ref.html
boxshadow-spread.html
reftest.list Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6 2010-09-11 09:27:12 -07:00
tableboxshadow-basic-ref.html
tableboxshadow-basic.html
tableboxshadow-tdshadow-ref.html
tableboxshadow-tdshadow.html
tableboxshadow-trshadow-ref.html
tableboxshadow-trshadow.html