w3c / css-validator

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

BUGFIX for null-byte at nth-child selectors #374

Closed RichardCox09 closed 2 years ago

RichardCox09 commented 2 years ago

Consider the following example:

.foo:nth-child(2){
    margin-top: 2px;
}

The validator parses a null-byte before the number (2), because no operand is specified. This caused that the browsers couldn't understand the style.

ylafon commented 2 years ago

Please note that the output is not meant to be a preprocessor, that said, thanks for this, the \0 was indeed plain wrong.