stylelint: Bug - Not validating trailing colon

Hello fellow devs,

According to w3c css validator, the snippet below is not valid because of the trailing colon, but the linter gave me no errors. It was a misstype but took me a lot to figure out the css file was the problem not something else. I used the standard configuration on atom linter-stylelint plugin.

.counter: {
  min-width: 100%;
  border: solid 3px red;
}

linter-stylelint version: 3.5.0 stylelint: 7.5.0 stylelint-config-standard: ^14.0.0

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 29 (29 by maintainers)

Most upvoted comments

Technically, there is a very similar syntax of apply-mixins for it.

So CSS syntax spec allow it. Problems is that current browsers, doesn’t understand it. But it is a valid syntax.

But, sure, we can add some simple rule for it. Like understandable-selectors.