::-webkit-meter-optimum-value
No estándar
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.
Resumen
El pseudo-elemento CSS ::-webkit-meter-optimum-value
da estilo al elemento meter cuando su valor está dentro del rango min-max establecido.
El color por defecto es verde.
Especificaciones
No es parte de ninguna especificación. Es un pseudo-elemento propietario y específico de WebKit/Blink.
Ejemplos
<meter min="0" max="10" value="6">Puntuación sobre 10</meter>
meter::-webkit-meter-bar {
/* Necesario para eliminar la propiedad de fondo por defecto */
background : none;
background-color : whiteSmoke;
box-shadow : 0 5px 5px -5px #333 inset;
}
meter::-webkit-meter-optimum-value {
box-shadow: 0 5px 5px -5px #999 inset;
}
Nota: Sólo funciona en navegadores basado en Webkit/Blink.
Compatibilidad con los distintos navegadores
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Característica | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Soporte básico | Sin soporte | (Yes) | Sin soporte | (Yes) | (Yes) |
Soporte básico | Firefox Mobile (Gecko) | Android | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Soporte básico | Sin soporte | (Yes) | Sin soporte | (Yes) | (Yes) |
Ver además
Los pseudo-elementos de WebKit/Blink para dar estilos a otras partes de <meter>
: