W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2012

Re: display: inline-block

From: David Dorward <david@dorward.me.uk>
Date: Sun, 5 Feb 2012 20:22:58 +0000
Cc: <www-validator-css@w3.org>
Message-Id: <6BB9A401-A8D2-4EBA-8E06-698AF55DCAC5@dorward.me.uk>
To: <StevenM@Lithorien.net>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:29 GMT