- 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
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 UTC