Of course not, because the class selectors are applied using
the stylesheet from svgB, not svg_A.

svg_B doesn't have a styleheet, so shouldn't the class selectors from svg_A apply?!


Well, I read somewhere that CSS selectors won't get applied to *generated* content (which is what happens when the symbol 'button' is being cloned into the DOM tree of svgA), but how are you supposed to handle the use case above?

Put the definition of coolColor and hotColor in svgB

I don't want to ... ;o)


Actually I would like to define e.g. a button which consist of multiple parts (face, border, shadow, icon etc.), where each part comes with its own style, i.e. color. Then I'm going to (re)use that button definition in multiple SVGs, each SVG with a different stylesheet, i.e. different colors for those button parts - IMHO a common use case, no?

ralf ...


------------------------------------------------------------- Ralf Siegel - Freelance Developer Recommended Listening: Broadcast - Haha Sound (Warp) contact_site: mailto:[EMAIL PROTECTED] -------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to