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

Re: [css3-values] Browsers allow unitless lengths in quirks mode

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 3 Feb 2012 07:02:35 -0800
Message-ID: <CAAWBYDBC9+X2rX_UeF9o0pxsQZ3vez=rX7aV2gboLgith3VjOw@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: Håkon Wium Lie <howcome@opera.com>, fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
On Thu, Feb 2, 2012 at 12:16 PM, Aryeh Gregor <ayg@aryeh.name> wrote:
> Test-case:
>
> data:text/html,<div style="height:100;width:100;background:gold"></div>
>
> In IE10 Developer Preview, Firefox 13.0a1, Chrome 18 dev, and Opera
> Next 12.00 alpha, "100" is interpreted as "100px" and you see a gold
> box.  If you add <!doctype html>, the box vanishes, because "100" is a
> parse error.  This quirk is interoperably implemented and seems to
> apply to all properties that accept a length, so it needs to be
> documented somewhere.  Values and Units seems like the right place.
> The effect for properties that accept both <length> and <number>, like
> line-height, needs to be called out explicitly.
>
> There are probably other quirks like this too.  For instance:
>
> data:text/html,<div style="background:00ff00; height:100;width:100"></div>
>
> This displays a lime box in IE, Chrome, and Opera, although not
> Firefox.  This also needs to be standardized one way or the other.

How much value is there in specifying crazy quirks-mode behavior and
trying to get browsers consistent on it?

(I suspect that every single thing I'm interested in working on is
higher-priority than this.)

~TJ
Received on Friday, 3 February 2012 15:03:28 GMT

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