Re: display: inline-block

On 5 Feb 2012, at 02:36, Steven Merrick wrote:

> According to http://www.w3.org/TR/CSS2/visuren.html, “inline-block” is a valid CSS value for the “display” property. However, when validating my page (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3a%2f%2flithorien.net%2fblog%2findex.shtml specifically), I am told that “inline-block” isn’t valid CSS. Per the spec, the validator is incorrect in this behavior.


You are looking at the CSS 2.1 specification but have specified that the validator use the CSS 2.0 profile (the CSS 2.1 profile is the default, which you have overridden). In CSS 2, the display property does not accept inline-block as a value.

http://www.w3.org/TR/2008/REC-CSS2-20080411/visuren.html#display-prop

-- 
David Dorward
http://dorward.me.uk

Received on Sunday, 5 February 2012 20:23:32 UTC