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

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 UTC