W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css3-fonts] Addition of font-size: xxx-large

From: John Daggett <jdaggett@mozilla.com>
Date: Tue, 17 Apr 2012 23:49:41 -0700 (PDT)
To: Ryosuke Niwa <rniwa@webkit.org>
Cc: WWW Style <www-style@w3.org>, Aryeh Gregor <ayg@aryeh.name>, Ehsan Akhgari <ehsan@mozilla.com>, "Kang-Hao (Kenny) Lu" <kennyluck@csail.mit.edu>
Message-ID: <1044952756.2402822.1334731781382.JavaMail.root@zmmbox3.mail.corp.phx1.mozilla.com>
Ryosuke Niwa wrote:

> > 2. <span style="font-size: <number>px"> where <number> is the
> > initial font size in pixels times three. 
>
> That won't work as it needs to be relative. 

Why does it need to be relative?  Why not allow percentages instead?

I'm fuzzy on the details of the execCommand API but it seems like the
proposed editing API should be treating the old size values as
obsolete, just as the <font> element is, and allow an additional set
of values oriented towards style usage. That way someday in the future
all user agents can drop support for size=7 altogether.

Example:

  document.execCommand("fontSize", false, "150%");

It seems like adding xxx-large to work around interop problems for the
styleWithCSS = true case is getting it backwards. We should be
changing the syntax of execCommand to allow more CSS-like relative or
absolute values.

A value named 'xxx-large' just seems wrong on so many levels...

Cheers,

John Daggett
Received on Wednesday, 18 April 2012 06:50:11 GMT

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