csstree / validator

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

Add fix-suggestion #5

Closed smelukov closed 2 months 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 2 months ago

Too complex and out of scope, sorry...