W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2011

Re: [css-shaders] CSS shaders for custom filters (ACTION-3072)

From: Vincent Hardy <vhardy@adobe.com>
Date: Thu, 6 Oct 2011 08:42:03 -0700
To: Alex Russell <slightlyoff@google.com>, Chris Marrin <cmarrin@apple.com>
CC: "www-style@w3.org CSS" <www-style@w3.org>, "public-fx@w3.org" <public-fx@w3.org>, SVG WG <public-svg-wg@w3.org>
Message-ID: <CAB31937.1B94B%vhardy@adobe.com>
Hi Alex,

>A question on this point. Does the current url() rule allow
>referencing an inline shader definition? e.g.:
>
><script id="vertexshader" type="x-shader/x-vertex">
>...
></script>
><style>
>  #el {
>     filter(url("#vertexshader"), .... );
>  }
></style>

Yes, you could do this. We have not implemented this in our prototype yet,
but it is in the spec (see "Note 7" in
https://dvcs.w3.org/hg/FXTF/raw-file/tip/custom/index.html#feCustom),
exactly what you are asking for:

<script id="warp" type="x-shader/x-vertex" >
<-- source code here -->
</script>

..
<style>
.shaded {
    filter: custom(url(#warp));
}



Cheers,
Vincent
Received on Thursday, 6 October 2011 15:42:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 October 2011 15:42:36 GMT