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

[filter-effects] Rounding for matrix values

From: Max Vujovic <mvujovic@adobe.com>
Date: Thu, 21 Aug 2014 21:04:30 +0000
To: Dirk Schulze <dschulze@adobe.com>
CC: "public-fx@w3.org" <public-fx@w3.org>
Message-ID: <14B54B80-5C0D-4A16-A650-3CDC4E7218C9@adobe.com>
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)

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

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.

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

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