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

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 08 Sep 2010 02:41:22 +0200
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: www-style@w3.org, www-svg@w3.org
Message-ID: <2tkd86t57rtqf3m3dj41540b1q51kn3ror@hive.bjoern.hoehrmann.de>
* Sylvain Galineau wrote:
>> On 08/28/2010 05:27 PM, Doug Schepers wrote:
>> > * For good or ill, it's already allowed in CSS in SVG, so there's
>> > backwards-compatibility to consider
>> I don't recall this claim. I only remember it being allowed in SVG
>> attribute values, which is a different thing. Are you sure of this?
>I'm confused too. 


  CSS2 [CSS2] states that a property value which is a <number> is
  specified in decimal notation (i.e., a <decimal-number>), which
  consists of either an <integer>, or an optional sign character
  followed by zero or more digits followed by a dot (.) followed
  by one or more digits. Thus, for conformance with CSS2, any
  property in SVG which accepts <number> values is specified in
  decimal notation only.

("Property" as used here refers to both presentation attributes and
declarations in text/css style sheets, as opposed to XML attributes
that do not correspond to properties, like the "d" attributes.)

In http://www.w3.org/TR/SVGMobile12/types.html this has been changed,
there it's just "A <number> value is specified in either decimal or
scientific notation." with no distinction between XML attributes and

It also has "The format of a <length> is a <number> optionally followed
by a unit identifier." so 

  <svg xmlns='http://www.w3.org/2000/svg'>
    <rect width='100' height='100' stroke='red' stroke-width='1e2em'/>

which in fact works in recent versions of Opera and Firefox. However,
SVG Tiny 1.2 does not affect text/css documents in any way, so from
what I can tell it's never been allowed (though some implementations
have supported it) in text/css documents, and for "properties" this
varies between revisions. (There is also a third dimension to this
through SMIL but I've not kept up with possible changes in SMIL3). So
the answer depends on what you consider "CSS".
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 8 September 2010 00:42:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC