3 ms·
> h2::first-line …I've never seen this notation. I've always seen pseudos with just one colon. Some quick testing in Textmate reveals that this does, indeed,
by egypturnash 14y ago
> h2::first-line
…I've never seen this notation. I've always seen pseudos with just one colon.
Some quick testing in Textmate reveals that this does, indeed, work, as does the single colon I've always been using. Triple colons don't work.
And this only works for pseudo elements; pseudo classes only work with single colons.
At least in Webkit; I didn't bother checking my simple test-case in Firefox, Opera, or IE.
Huh.
- kmontrose 14y agoThat's the spec as of CSS3, pseudo elements get ::, pseudo classes get :. Practically speaking browsers will accept : for everything, possibly forever.
- egypturnash 14y agoI learnt a new thing! And will probably never use it until browsers start being picky about it.