|
Posted by Jukka K. Korpela on 07/11/07 22:56
Scripsit Ben C:
>> It's not clear (at least by my reading of CSS specs) what should
>> happen if an element with display: block appears inside an element
>> with display: inline.
>
> It is well-defined by CSS 2.1. See 9.2.1.1 "Anonymous block boxes"
OK, thanks.
>> Strange things _might_ happen in future browsers, when the default
>> display: inline-block (for img, input, select etc., as per CSS
>> specs) is changed to display: inline.
>
> Is that expected to happen? I think img already is display: inline by
> default.
According to the sample style sheet for HTML in the CSS 2.1 draft, img has
display: inline-block. The sample style sheet is not normative, but what
else could we use here to make our guess?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|