Skip to content
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

Suppress "@-moz-document" warning #1203

Closed
pheuter opened this issue Apr 26, 2021 · 1 comment
Closed

Suppress "@-moz-document" warning #1203

pheuter opened this issue Apr 26, 2021 · 1 comment

Comments

@pheuter
Copy link

pheuter commented Apr 26, 2021

Any way to suppress particular warnings like the one below without changing the log level?

warning: "@-moz-document" is not a known rule name
    78 │ @-moz-document url-prefix() {
       ╵ ~~~~~~~~~~~~~~
@pheuter pheuter changed the title Supress "@-moz-document" warning Suppress "@-moz-document" warning Apr 26, 2021
@evanw
Copy link
Owner

evanw commented Apr 26, 2021

Huh. According to MDN this feature was removed from the web because it's actively harmful. But there's an edge case that allows the exact tokens @-moz-document url-prefix() to mean "if Firefox." TIL. I can add support for recognizing @-moz-document.

@evanw evanw closed this as completed in ed551f9 Apr 26, 2021
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

No branches or pull requests

2 participants