Mon, 16 August, 2010 1:40:39, /ddailey/:

> I don't know about using filters as a part of CSS like that (nor in 
> which browsers it would work),

I'm using Mozilla Firefox (4.0 betas).  I place the CSS rules 
specifying the 'filter' property [1] in my "userContent.css" [2].  
I may use the '@-moz-document' rule [3] to restrict certain 
selectors to particular sites.  I put the SVG filter definitions in 
a file next to "userContent.css" so I could reference it relatively 
from it, like:

img[src$="some.png"] {
  filter: url(svg-filters.xml#filter-a);
}

The filters apply just o.k. this way.

> but take a look at
> http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#filters
> 
> Specifically, both feColorMatrix and feComponentTransfer allow 
> surgery on ranges of colors. I can't right now think of a way of 
> doing quite what you have in mind other than converting high values 
> of R+G+B = W to transparent and then letting an underlying black 
> rectangle shine through.

Yep, here comes the hard part.  I lack basic experience how to 
drive the different filters doing what I want, so that's why I've 
decided to ask whether someone hasn't already done the specific 
thing I'm after.  I guess I'll have to try harder. :-)  I'll surely 
post back if I come up with something.  Thanks for your input.

[1] http://www.w3.org/TR/SVG11/filters.html#FilterProperty
[2] http://www.mozilla.org/unix/customizing.html#userContent
[3] https://developer.mozilla.org/en/CSS/@-moz-document

-- 
Stanimir



      


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to