vscode-css-languageservice: CSS property "appearance" is not supported

-webkit-appearance and -moz-appearance is supported appearance property is not supported?

preview

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 16 (13 by maintainers)

Most upvoted comments

Is it possible to make builtin linter ignore some part of a file like so?

button {
  appearance: none; /* csslint allow: known-properties */
}

I’m using CSS compiler which adds vendor prefixes at build, so it doesn’t make sense for me add all vendor perfixed properties by hand (I’m likely to forget some)

Hate to be that guy, but it not being supported by “most browsers” isn’t really an excuse. Especially in this modern world where everyone and their dog uses an autoprefixer or some sort.

An ideal option might be to allow overrides for such rules? The following works for me as a catchall, but it’s not ideal.

"css.lint.unknownProperties": "ignore",
"scss.lint.unknownProperties": "ignore"

@aeschli I don’t know how but if the prefixed version of a property is supported, I think it makes sense to have the standard property in there. Not having the standard one is in a way giving devs a push to write prefixed code, which is definitely a bad thing to do when we have tools like autoprefixer.

Then I think this can stay at the very bottom of the backlog. It’s way far from becoming a standard anytime soon!

appearance is not supported by most browsers yet: https://developer.mozilla.org/en-US/docs/Web/CSS/appearance