I'm trying to style my custom progress bars, but I'm having trouble partially coloring the text when the progress bar is overlapping the text.
Someone else had this question, but I don't like the answer of having duplicate elements to achieve the effect.
The other answer doesn't work anymore in modern Webkit browsers, it seems.
Is it possible to do this with only one overlapping element?
HTML:
<div class="bar-wrapper">
<label class="bar-lbl four passed"><span>Q1</span></label>
<label class="bar-lbl four passed"><span>Q2</span></label>
<label class="bar-lbl four passed"><span>Q3</span></label>
<label class="bar-lbl four current"><span>Q4</span></label>
<div class="bar" data-percent="50"></div>
</div>