Redundant values in shorthand properties

Hello!

I added a feature to my local version of the CSS Validator, for my own
use. It can check redundant values in shorthand properties such as
'margin' and 'padding'. For example, the rule '.abc { margin: 1px 1px
1px 1px; }' has redundant values, but '.abc { margin: 1px; }' doesn't.

Any comments on this feature? Is it a useful feature to add to the
official CSS validator? If so, should it be a warning, or a new
message level like hint/info?

Here's the code and initial discussion:
https://github.com/xfq/css-validator/pull/1

Received on Friday, 24 March 2017 00:53:56 UTC