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:

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

    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:

    text-align: center;
Received on Sunday, 9 November 2008 11:14:05 UTC

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