Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Gecko is just fine with applying CSS transitions to pseudo-elements. Try this testcase:

data:text/html,<style>div::before { color: green; content: "text"; } div:hover::before { color: red; -moz-transition-duration: 5s; }</style><div>

It does look like Webkit doesn't support this, though. Which is a bug, per the current spec draft. All the transition stuff is specced to apply to ::before and ::after.



Not sure what you mean. I've tested transitions in Firefox 3.6 and they are not supported - http://jsfiddle.net/qPdeV/


3.6 doen't support transitions at all, correct. 4 supports transitions, including on ::before and ::after.


Right. But Firefox 4 is still in beta, making it a bit misleading to say "Gecko is just fine".




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: