W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Quirks Mode Standard

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 13 Feb 2012 05:19:42 -0800
Message-ID: <20120213131942.GA18329@pickering.dbaron.org>
On Monday 2012-02-13 14:03 +0100, Simon Pieters wrote:
> You say that it doesn't apply for the size of 'font'. The link above uses
> 
> font:60 serif
> 
> and has a 60px font size in Firefox Nightly for me.
> 
> These also get applied:
> 
> font:101 serif
> font:100 60 serif
> font:100 100 serif
> font:bold 100 serif
> font:normal normal normal 100 serif
> 
> These don't:
> 
> font:100 serif
> font:100/1 serif
> font:normal 100 serif
> font:normal normal 100 serif

I believe they don't because the '100' gets consumed as a valid
value of font-weight (since the shorthand parser assumes there's no
ambiguity to be handled between font-weight and font-size), and then
the shorthand is syntactically invalid because it doesn't have a
font-size.  I don't see any reason to "fix" that.

-David

-- 
?   L. David Baron                         http://dbaron.org/   ?
?   Mozilla                           http://www.mozilla.org/   ?
Received on Monday, 13 February 2012 05:19:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC