W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: [css3-background] possibly too late for last call, but: background-opacity?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Sat, 17 Oct 2009 10:32:33 +1300
Message-ID: <11e306600910161432t2c77332ak4863661b068df4df@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Giovanni Campagna <scampa.giovanni@gmail.com>, Brad Kemper <brad.kemper@gmail.com>, Lee Owen <fleeboy@gmail.com>, www-style@w3.org
Out of all the ideas presented so far, new image functions sound best to me,
e.g.
background-image: image-opacity(url(foo.png), 0.3);
background-image: image-offset(url(foo.png), 100, 0);
background-image: image-rect(url(foo.png), 100, 0, 100, 200);

These are animatable with transitions, compose well and don't require
changes to CSS fundamentals.

For arbitrarily complicated stuff, I recommend SVG filters with additional
named source images representing the CSS components of the source element.
We probably need to figure out a mechanism so that filters can be
parameterized with CSS values though --- both for ease of reuse and easy
animation. Something like
filter: url(effects.svg#LSD), 10, 10, 2;

effects.svg contains
  <feOffset in="CSSBackground" x="$1" y="$2"/>
  <feColorMatrix type="hueRotate" values="$3"/>

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Friday, 16 October 2009 21:33:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT