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

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

From: Chris Lilley <chris@w3.org>
Date: Tue, 24 Aug 2010 10:54:21 +0200
Message-ID: <49470436.20100824105421@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, Bert Bos <bert@w3.org>
On Tuesday, August 24, 2010, 9:27:57 AM, Tab wrote:

TAJ> On Mon, Aug 23, 2010 at 11:41 PM, Chris Lilley <chris@w3.org> wrote:
>> I have been asked by the SVG WG to ask the CSS WG, once again, to allow
>> scientific notation for those properties which allow it. In SVG, currently
>> those properties allow scientific notation in presentation attributes but
>> dissallow it in style sheets (style attributes, style elements, external
>> style sheets). This disparity causes user confusion.

TAJ> Sigh.  We should allow it.  It's simple, it's useful, and it's intuitive.

And already implemented in Firefox, although currently with a "mode bit" so
that it only applies to SVG.

> Mozilla's CSS parser has a special mode for all styles loaded from SVG,
> including inline styles on SVG-namespace elements.  In that mode the
> above regular expression becomes
> num             ([0-9]+|[0-9]*"."[0-9]+)(e[+-]?[0-9]+)?
> (as always, the "e" is case-insensitive).  Numbers with this suffix are
> interpreted as scientific notation.  A % or {ident} suffix may follow
> the exponent (which converts the token to a PERCENTAGE or DIMENSION
> token)


 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
Received on Tuesday, 24 August 2010 08:53:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:49 UTC