W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2016

Grayscale, lacuna value, and optional argument

From: Chris Lilley <chris@w3.org>
Date: Mon, 1 Feb 2016 23:02:54 +0100
Message-ID: <1374267260.20160201230254@w3.org>
To: public-fx@w3.org

The ED of filters says that the lacuna value for the grayscale filter is zero.


 - the syntax does not seem to allow the argument to be omitted so how
   can the lacuna value be used
 - if it did, then 0 is an odd value

0 means no change. Thus seems unintuitive. I would expect grayscale()
to be equivalent to grayscale(100%) which is likely what authors would
expect and would be convenient for the most common use case "make this

Suggested fix:

 - change the grayscale filter syntax to make the argument optional
 - change the lacuna value to 1

Btw I added some tests for grayscale since there was only one (100%)
so I added 1, 0, 0% and 300% as well.

Best regards,
 Chris  Lilley
 Technical Director, W3C Interaction Domain
Received on Monday, 1 February 2016 22:02:58 UTC

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