Re: [filter-effects] Rounding for matrix values

On Aug 21, 2014, at 10:04 PM, Max Vujovic <mvujovic@adobe.com> wrote:

> 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.

It rather seems that luminanceToAlpha (on which the second example is based) is the exception and we constantly use 3 digits everywhere else. I personally don’t care and do what implementers do today already.

Greetings,
Dirk

> 
> Thanks,
> Max

Received on Thursday, 21 August 2014 21:37:39 UTC