- 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>
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:34 UTC