W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2010

Re: Agenda, January 14 2010 SVG WG telcon

From: Chris Lilley <chris@w3.org>
Date: Thu, 14 Jan 2010 21:44:43 +0100
Message-ID: <654686750.20100114214443@w3.org>
To: Patrick Dengler <patd@microsoft.com>
CC: Erik Dahlstrom <ed@opera.com>, "public-svg-wg@w3.org" <public-svg-wg@w3.org>
On Thursday, January 14, 2010, 7:52:00 PM, Patrick wrote:


PD> *Strict CSS parsing rules reject values without units identifiers expressed
PD> In the case where unit identifiers are not expressed, the CSS
PD> specification now expressly rejects these. 
PD> (http://www.w3.org/TR/css3-values/#lengths) .  Previously (and in
PD> quirks mode) these defaulted to px.  However, since they are now
PD> supposed to be rejected, a case like the following:

PD>    <line x1="30" y1="10" x2="80" y2="10" style="stroke-width: 10; stroke: black;"/>

PD> The stroke-width should be rejected by the CSS parser and thus
PD> the default stroke-width (1px) should be painted.  However, most
PD> browsers are still interpreting this as 10px.

PD> Advice on this area is appreciated.

Notice the difference between

<line x1="30" y1="10" x2="80" y2="10" style="stroke-width: 10; stroke: black;"/>

which has a style sheet and so follows CSS rules (same for style attributes, style elements and external style sheets), and

<line x1="30" y1="10" x2="80" y2="10" "stroke-width="10" stroke="black"/>

which uses presentational attributes and does not need to follow the CSS rules for style sheets.

Scour is a way to turn legacy output that is (inadvisedly) using style attrs everywhere, into presentational attributes.

-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
Received on Thursday, 14 January 2010 20:45:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:11 UTC