I am trying to customize an HTML5 progress bar tag in a unique way:
The background of the bar should have a gradient with a fixed width of 100%, but I want the gradient to only be visible where the value of the bar is...
progress[value]::-webkit-progress-bar { background: linear-gradient(to right, red 1%, green); }
What code should I use to style the value, or is there another solution?
progress[value]::-webkit-progress-value { //insert code here }
Could I possibly achieve this using inverted CSS masking?
I appreciate any guidance on this matter!