re: Cool uses of the ::before and ::after pseudoelements VIEW POST

TOP OF THREAD FULL DISCUSSION
re: There's a bit of a history here... essentially, these were originally shipped with single colons :before and :after. Later, the committees decided ...
 

Ah, that makes total sense. And yeah I've been using :before and :after ever since they became a part of CSS (even before they were widely-supported), so seeing the :: versions caught me by surprise.

Anyway, thanks for the clarification! It all makes sense in retrospect, although it still seems weird to me that they decided that there needs to be specific syntax for pseudo-elements vs. pseudo-classes. It doesn't seem likely that they'd ever allow the two to collide, for example...

code of conduct - report abuse