actum / gulp-dev-stack

Actum dev stack based on gulp
MIT License
11 stars 7 forks source link

single vs double colon pseudo elements #135

Closed ronaldruzicka closed 7 years ago

ronaldruzicka commented 7 years ago

I recently found out, that stylelint requires a single colon pseudo-elements (:before, :after, etc.), but it's recommended to use double colon (::before, ::after, etc.). Since we don't have to support IE8, we should use double colon pseudo-elements, to better distinguish from pseudo-clasess.

vbulant commented 7 years ago

"It's recommened to use double colon" – could you link the recommendation?

ronaldruzicka commented 7 years ago

I can't find an article where they really recommend it, but it was created to differentiate the pseudo classes from elements, and since we don't have to support IE8, which is the only browser not supporting ::pseudo-element syntax, we probably shouldn't force the older syntax by stylelint. And maybe leave it for the developer to decide.