- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 5 Sep 2011 15:49:48 -0700
- To: public-fx@w3.org
I think it would be useful to add an opacity() filter function to the Filters spec. This isn't necessary for the 'filter' property (just use the 'opacity' property instead), but would be nice when filtering images via the filter() function (which appears to have not yet made it into the draft). Currently, the only way to make an image partially-transparent is to use the cross-fade() function, which is somewhat verbose and non-obvious: cross-fade(image(transparent), url(foo.jpg), 20%) I think the markup equivalent would be: <filter id="opacity"> <feComponentTransfer> <feFuncA type="table" tableValues="0 [amount]" /> </feComponentTransfer> </filter> ~TJ
Received on Monday, 5 September 2011 22:50:35 UTC