w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
204 stars 105 forks source link

Ignore null-Properties for ATRules #377

Closed RichardCox09 closed 2 years ago

RichardCox09 commented 2 years ago

Consider the following example:

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  * {color: red}
}

The validator validates the input as:

@media all, null {
  * {
    color : red;
  }
}

Which is of course not valid CSS.

ylafon commented 2 years ago

Thanks for this, instead of filtering the null entries to display them, I removed them during parsing.