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.


David Dorward

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:11 UTC