Re: Agenda, January 14 2010 SVG WG telcon

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