dvtng / jss

JavaScript library for getting and setting CSS stylesheet rules
335 stars 55 forks source link

pseudo selector such as ::before and ::after support #23

Closed composite closed 10 years ago

composite commented 10 years ago

I edited your code long ago for pseudo class support for all browsers. but I can't pull request because used old code. see my commit for details.

webkit supports pseudo selector with 2 colons (block pseudo selector in CSS3) (::before and ::after). :before and :after are not work. other browsers may works in old style pseudo selector (:before and :after).

How it works - go to my wiki

thanks.

editht commented 10 years ago

Thanks for the info, JSS (0.6) has now been updated to handle the pseudo element inconsistencies between browsers. Any calls to JSS should use the correct double colon syntax for pseudo elements, and it will fall back to single colon syntax when required.