Re: [cssom] CSSNamespaceRule

On 19/03/2014 05:54, Daniel Glazman wrote:
> On 18/03/2014 12:56, Simon Pieters wrote:
>> When a namespace rule is changed and there are rules after it, what do
>> you want to happen? Do you want the other rules to be affected or not?
> Sure I want all rules to be affected. Again, the scenario is the
> following one: a html document contains an embedded stylesheet. I'm
> adding a SVG image I want to style. I need to add a namespace rule
> to the existing stylesheet to style my SVG. I can't. This is a blocker
> for all conforming editing environments.

Sorry for giving a non-solution, but you *could* just ignore namespaces 
when styling SVG elements, just like everyone usually does for HTML 
elements. (Without a default namespace, type selectors select elements 
with a given local name in any namespace.)

Simon Sapin

Received on Tuesday, 18 March 2014 22:26:15 UTC