I have added a label to the jquery ui progressbar using this demo.
What I want to do is change the text color depending on if the progress bar is behind the letter.
How can I tell if that has happened?
Its kinda ugly but if you duplicate the label, one outside the bar and one inside, and use overflow: hidden you can pull it off:
overflow: hidden
http://jsbin.com/ohiyo/21/
Only tested in Chrome dev and firefox 4