ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

Pseudo-elements: single- or double-colon? #78

Open keithjgrant opened 7 years ago

keithjgrant commented 7 years ago

Technically, pseudo-elements are supposed to have double-colons (::before, ::after, ::first-line, ::first-letter, and ::selection). What should we do with them?

IE8 supports only a single-colon syntax. All other browsers, for backwards-compat, support both syntaxes. ::selection is an exception to this, as IE8 doesn't support it, and all other browsers support only the double-colon syntax.

Should we A) convert to single-colon B) convert to double-colon C) leave as authored

keithjgrant commented 7 years ago

I am in favor of the double-colon, because I'm a pedant. On the other side, @benfrain has voiced support for single-colon syntax

My reasons for supporting double: