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

Re: display: inline-block

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 05 Feb 2012 23:03:56 +0200
Message-ID: <4F2EEEBC.9040002@cs.tut.fi>
To: StevenM@Lithorien.net
CC: Steven Merrick <lithorien@gmail.com>, www-validator-css@w3.org
2012-02-05 4: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
> <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 using the CSS 2.0 profile (profile=css2). Use the CSS 2.1 
profile (profile=css21), which is now the default:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Flithorien.net%2Fblog%2Findex.shtml&profile=css21&usermedium=all&warning=1&vextwarning=&lang=en

Yucca
Received on Sunday, 5 February 2012 21:05:15 GMT

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