- From: Chris Lilley <chris@w3.org>
- Date: Tue, 24 Aug 2010 10:54:21 +0200
- 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) http://lists.w3.org/Archives/Public/www-style/2010Feb/0042.html -- 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