::-moz-meter-bar
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The ::-moz-meter-bar
CSS pseudo-element represents the meter gauge in a <meter>
element. It is used for selecting and applying styles to the gauge inside a meter element.
Syntax
css
::-moz-meter-bar {
/* ... */
}
Specifications
Not part of any standard.
Examples
HTML
html
Normal: <meter min="0" max="10" value="6">Score 6/10</meter>
<br />
Styled: <meter class="styled" min="0" max="10" value="6">
Score 6/10
</meter>
CSS
css
meter {
height: 20px;
width: 200px;
vertical-align: -0.4rem;
}
.styled::-moz-meter-bar {
background: lime;
box-shadow: 0 2px 3px grey inset;
border-radius: 5px;
}
Result
Browser compatibility
BCD tables only load in the browser