::-moz-color-swatch
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.
El ::-moz-color-swatch
pdseudo-elemento CSS es una extension de Mozilla que representa el color seleccionado en un <input>
de type="color"
.
Nota: Usando ::-moz-color-swatch
con cualquier cosa excepto <input type="color">
no concuerda con nada y no tiene efecto.
Sintaxis
{{csssyntax}}
Ejemplo
HTML
<input type="color" value="#de2020" />
CSS
input[type=color]::-moz-color-swatch {
border-radius: 10px;
border-style: none;
}
Resultado
Especificaciones
No es parte de ninguna especificacion. Es un pseudo-elemento patentado específicamente para Gecko.
Browser compatibility
BCD tables only load in the browser
Ver tambien
- Pseudo-elementos similares usados por otros buscadores:
::-webkit-color-swatch
, pseudo-elemento soportado por WebKit y Blink (Safari, Chrome, and Opera)