|
Posted by Jukka K. Korpela on 07/12/07 11:11
Scripsit Ben C:
>> 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?
>
> I don't see where that is.
D'Oh! I can't trust even my own books, it seems. Well, I wrote it in 2003,
and they changed the CSS 2.1 draft late that year. In the version
http://www.w3.org/TR/2003/WD-CSS21-20030128/sample.html
they still had img { display: inline-block; }.
All those changes to the "sample style sheet" reflect the fact that it's
just an eclectic collection of observed browser practices, nice ideas, and
weird ideas. But it may have become somewhat better through years.
Anyway, although img was not a good example, input elements and other form
fields still have display: inline-block. And my point was that
form * { display: inline; }
was unsafe since it applies to _all_ elements inside a form.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|