-1
I have a Progress bar where in it I place a content assigning the percentage, according to the code:
progress {
text-align: center;
height: 18px;
width: 65px;
-webkit-appearance: none;
border-radius: 80px;
/* Set the progressbar to relative */
position: relative;
font-size: 19px;
color: white;
}
progress:before {
content: attr(data-label) " %";
font-size: 0.8em;
vertical-align: 0;
border-radius: 80px;
position: absolute;
left: 0;
right: 0;
}
progress::-webkit-progress-bar {
background-color: #c9c9c9;
border-radius: 80px;
}
progress::-webkit-progress-value {
background-color: #7cb342;
border-radius: 80px;
}
progress::-moz-progress-bar {
background-color: #7cb342;
border-radius: 80px;
}
<progress data-label="100" />
In Firefox, the Progress bar looks like this
In other browsers it gets right, that’s how
Is there any way to solve this in Firefox??
It seems that FF does not accept pseudo element in the Progress tag
– hugocsl