[filter-effects] Rounding for matrix values

In the Filter Effects spec, we round to 3 decimal places in some places (e.g. 0.213):
http://www.w3.org/TR/filter-effects/#feColorMatrixValuesAttribute (See saturate matrix)
http://www.w3.org/TR/filter-effects/#sepiaEquivalent

And we round to 4 decimal places in others (e.g. 0.2126):
http://www.w3.org/TR/filter-effects/#feColorMatrixValuesAttribute (See luminanceToAlpha matrix)
http://www.w3.org/TR/filter-effects/#grayscaleEquivalent

Should we make this consistent?

Personally, I prefer 4 decimal places because Firefox uses that more frequently in the codebase, and I’m working on the CSS Filters implementation there. Otherwise, I have no arguments for one or the other.

Thanks,
Max

Received on Thursday, 21 August 2014 21:05:13 UTC