csstree / validator

CSS validator based on CSSTree
MIT License
65 stars 14 forks source link

Add fix-suggestion #5

Closed smelukov closed 1 week ago

smelukov commented 7 years ago
.some
{
   color: rgb(255, 0, 255, 1);
}

In this example, alpha component is excess and validator will tell about it: Mismatch syntax But, will be cool if validator will suggesting some fixes for these (and similar) cases:

fixes: [
  'rgb(255, 0, 255);',
  'rgba(255, 0, 255, 1);'
]

Some other examples:

lahmatiy commented 1 week ago

Too complex and out of scope, sorry...