Re: display: inline-block

David Dorward <[email protected]>
Newsgroups gmane.org.w3c.validator.css
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.