At 21:27 +0900 10/17/12, Philippe Wittenbergh wrote:

E {
        display: inline-block;
        float: left;
/* .. more .. */
}

Afaict, those are all applied to inline elements, no width is specified. On the face of it, that code is completely non-sensical (float will make the element display: block anyway - CSS 2.1:9.7 [1]).

The question: does anyone recognizes this as some kind of hack for whatever browser ? I wouldn't know what the benefit is, though.

I have a vague memory that maybe this was a way to ensure you triggered hasLayout in some versions of IE. As you point out, the specification says that floating forces a change of display role, but I'm pretty sure not every browser properly did so in the early days.

--
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
  -- Martina Kosloff (http://mako4css.com/)
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to