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


[Aryeh Gregor:]
> 
> On Fri, Feb 3, 2012 at 12:27 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> > Interesting.  https://bugzilla.mozilla.org/show_bug.cgi?id=99554 is
> > where the quirk was added, and at the time IE most definitely allowed
> > curlies in @style.
> >
> > I just tested IE, and IE9 in "IE9" browser mode and "Quirks" document
> > mode does not have this quirk... the first time I load the page.
> >
> > But IE has the quirk in "Quirks" and "IE7" document modes in all of
> > the other three browser modes, and now that I tried those it also has
> > the quirk if I put it back in "IE9" browser mode (in the "Quirks" and
> > "IE7" document modes).  It's all pretty confusing.
> >
> > If WebKit in fact doesn't have this quirk, which seems to be the case
> > at first glance, then maybe we can remove it without too much in the
> > way of compat issues...
> 
> I was testing in IE10 Developer Preview, with no doctype and no manual
> mode override.  It could be that real-world pages that require this quirk
> will cause IE10 to switch to its IE6 or IE7 mode for other reasons.  Or
> maybe IE10 just isn't web-compatible and they haven't realized yet.
> 
That mean you would be in intereoperable quirks [1], not the legacy IE5 quirks.
If you switch to the latter then you'll see curly @style values apply. Maybe
we haven't run into those sites yet, or maybe content that depends on this is 
no longer an issue. 

[1] http://blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx

Received on Monday, 27 February 2012 16:17:13 UTC