On the MDN documentation for <progress>
, they provide this example:
<progress value="70" max="100">70 %</progress>
This element contains the text node of 70 %
, but it doesn't display anywhere. I'm curious about two things. The first is, if there is a way to display it. (Perhaps some default CSS is preventing this? Please note that I'm not looking for any hacks that require positioning of other elements. This question is different from the others on Stack Overflow, in that I'm curious about whether or not there are proper ways to show that text.)
For the second question, I'm assuming it isn't possible without workarounds. I'm curious why that is. The spec claims that the <progress>
element can have phrasing content. The element requires a start and end tag. It seems clearly set up to contain content. What's the technical reason for preventing this content from displaying?