3 ms·
Right! Thanks for this. I've never really looked into this and have been writing whatever worked, with a preference for the single colon. CSS 1 & 2 apparently
by jraph 9mo ago
Right! Thanks for this. I've never really looked into this and have been writing whatever worked, with a preference for the single colon.
CSS 1 & 2 apparently conflated the two, and CSS 3 allows one column for CSS 1 & 2 pseudo elements. I never noticed it wasn't all of them. Since I learned CSS right before CSS3, my situation kinda makes sense I guess.
Single colons everywhere have felt easier and more regular to me, so I've written basically everything with single colons except maybe the odd CSS 3 pseudo element here and there. But it seems the two colons will be mandated going forward.
I guess I'll have some edits to do, though I do hope and kinda expect they won't break backward compatibility.
https://stackoverflow.com/questions/17684797/should-i-use-single-colons-or-double-colons-for-before-after-first-le#28527928 https://stackoverflow.com/questions/17684797/should-i-use-si...