Skip to content

Ignore null-Properties for ATRules #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

RichardCox09
Copy link

@RichardCox09 RichardCox09 commented Aug 11, 2022

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 added a commit that referenced this pull request Aug 29, 2022
@ylafon
Copy link
Member

ylafon commented Aug 29, 2022

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

@ylafon ylafon closed this Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants