2

I was wondering if anyone has come up with this problem?

I have a pseudoelement on :before and I want to change one of its properties on hover

element:before {
    ....
    background: red;
}
element:hover:before {
    ....
    background: green;
}

it works great except from chrome on mac, where it works the first time i hover an element but then all the "before" elements using this method disappear on hover

i created a jsfiddle which replicates the problem (test on chrome/mac to see the bug)

http://jsfiddle.net/annam/vnjj5/1/

any solutions? or known bugs? havent been able to find anything on google

anna.mi
  • 1,549
  • 1
  • 14
  • 28

0 Answers0