W3C home > Mailing lists > Public > www-style@w3.org > February 2010

Re: [css-style-attr] SVG WG comments on CSS Styling Attributes Level 1

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Wed, 10 Feb 2010 13:37:32 -0800
To: Zack Weinberg <zweinberg@mozilla.com>
Cc: Chris Lilley <chris@w3.org>, www-style@w3.org
Message-ID: <20100210133732.0c596aeb@mozilla.com>
Zack Weinberg <zweinberg@mozilla.com> wrote:
> 
> Mozilla's CSS parser has a special mode for all styles loaded from
> SVG, including inline styles on SVG-namespace elements.

This statement was wrong.  The special mode only applies to SVG
attributes like color, width, and fill (I append a complete list) that
are internally converted to CSS property declarations.  style="..." on
an SVG element accepts the same syntax that it would if it were on an
HTML element, as do full style sheets that are linked from SVG
documents.

Besides accepting scientific notation, there is one other difference
between the special mode and the normal (standards-compliant HTML) mode:
nonzero dimensionless numbers are accepted in contexts where a <length>
is required, and are treated as-if px had been specified.

zw

alignment-baseline
baseline-shift
clip
clip-path
clip-rule
color
colorInterpolation
colorInterpolationFilters
cursor
direction
display
dominant-baseline
fill
fill-opacity
fill-rule
filter
flood-color
flood-opacity
font-family
font-size
font-size-adjust
font-stretch
font-style
font-variant
fontWeight
glyph-orientation-horizontal
glyph-orientation-vertical
image-rendering
kerning
letter-spacing
lighting-color
marker
marker-end
marker-mid
marker-start
mask
opacity
overflow
pointer-events
shape-rendering
stop-color
stop-opacity
stroke
stroke-dasharray
stroke-dashoffset
stroke-linecap
stroke-linejoin
stroke-miterlimit
stroke-opacity
stroke-width
text-anchor
text-decoration
text-rendering
unicode-bidi
visibility
word-spacing
Received on Wednesday, 10 February 2010 21:38:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:24 GMT