Given the html
<meter value="0.55" high="0.999" optimum="1">
<span class="meter-value">0.5491</span>
</meter>
I would like text 0.5491 on top of the meter. I tried to style the text using usual CSS techniques, but it won't show at all. In inspector it just says width and height is 0 no matter how much I say things like
.meter-value {
display: block; width: 50px; height: 20px;
}
I made more attempts, these examples are simplified. I use Firefox for tests and compatibility is not pressing issue (inhouse project).
I much more prefer "ugly css" solution above "ugly html" solution.
Update: (to sum up some comments)
There seems to be some magic which makes content from meter invisible (including the content from meter::after, meter span::after and simillar components) in Firefox. So the question is if there is a css which can override this. Setting width, height and visibility did not help.