W3C home > Mailing lists > Public > public-fx@w3.org > July to September 2014

Re: [filter-effects] Rounding for matrix values

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 21 Aug 2014 21:37:08 +0000
To: Max Vujovic <mvujovic@adobe.com>
CC: "public-fx@w3.org" <public-fx@w3.org>
Message-ID: <9A19070D-531E-488D-8A65-C5BEFC6F3B34@adobe.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:50 UTC