W3C home > Mailing lists > Public > www-svg@w3.org > March 2013

Re: Presentation attributes with disabled browser styling

From: Chris Lilley <chris@w3.org>
Date: Tue, 19 Mar 2013 17:40:08 +0100
Message-ID: <1444842114.20130319174008@w3.org>
To: John Drinkwater <john@nextraweb.com>
CC: www-svg@w3.org
Hello John,

Tuesday, March 19, 2013, 3:00:29 PM, you wrote:

> I’ve hit a behaviour in Firefox that I’d like clarified in the spec. as
> to how it should be behave. IE and Presto (rip Opera) behave as I would
> expect.

> When the user sets Page Style - None (which for all intents and purposes
> to the end user is a CSS toggle), SVG documents lose their attribute-set
> styling. This isn’t just style="" attributes as one could expect, but
> fill="", stroke="" etc. This negatively effects masks, fill-rules etc.

> Is the wording in
> http://www.w3.org/TR/SVG11/styling.html#UsingPresentationAttributes on
> ‘User agents that do not support CSS must ignore any CSS style rules
> defined in CSS style sheets and ‘style’ attributes.’ meant to extend
> further into any document-defined styles via attributes,

No, it is not meant to extend further. The spec you quoted is precise
and correct. Stylesheets includes
- external style sheets
- the content of style elements
- the content of style attributes.

it does not include the content of presentational attributes, which
provide a default styling in the absence of style sheets.

> or is this
> Firefox behaving not as intended?

This is a Firefox bug.

> For further reference, the bug I have open.
> https://bugzilla.mozilla.org/show_bug.cgi?id=607441

> Regards,

Best regards,
 Chris                            mailto:chris@w3.org
Received on Tuesday, 19 March 2013 16:40:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:41 UTC