W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2008

Warnings for non-applicable properties

From: Paul Arzul <paul.arzul@gmail.com>
Date: Sun, 9 Nov 2008 13:11:04 +0200
Message-ID: <423830b0811090311i4fd12019j44c888a73ac68f27@mail.gmail.com>
To: www-validator-css@w3.org

CSS defines when properties are applicable (see the Applies column:
<http://www.w3.org/TR/CSS21/propidx.html>)

Should we generate warnings when properties are not applicable? For example:

p
{
    border-collapse : collapse;
}

We could warn about the paragraph not being a table or inline-table
element. (I get no warnings with Warnings set to All.)

I'm hoping this will help catch common problems such as trying to
centre inline elements:

a
{
    text-align: center;
}
Received on Sunday, 9 November 2008 11:14:05 GMT

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