Commit Graph

3 Commits

Author SHA1 Message Date
Jeff Muizelaar
556e5abfa9 Bug 584515. Fix border-breaking-000-cols.xhtml on D2D. r=roc
We are running into rasterization inaccuracies here.

This test draws green circles on a green rectangle and assumes that the result
will be solid green.

Here's what happens with D2D:

D2D computes coverage values in floating point so assume that we get a coverage
of about 0.112399 or 0.112399*255 == 28.6

green (128/255 == 0.50196) is multiplied by the coverage to get 0.0564702 or
.0564702*255 == 14.39

the results of the pixel shader get rounded before blending. So we get
(r=0,g=14,b=0,a=29)

blending this OVER green gives:

14+(255-29)*128/255 == 127 instead of 128.

This doesn't happen with other backends because they typically use integer
coverage amounts.

We fix it by using '&nbsp' instead of '.'
2010-08-08 15:54:24 -04:00
dbaron@dbaron.org
c7b3ec9107 Fix reftests that depended on bug 379461. 2008-02-19 10:46:43 -08:00
fantasai.cvs@inkedblade.net
4b81524f7e fix border/padding and availableHeight calculations at page/column breaks, b=368079 r+sr=roc a=roc 2008-01-15 19:54:46 -08:00