pseudo-element
::-moz-color-swatch — CSS reference
Nonstandard vendor pseudo-element for the color well. Native control parts depend on engine and appearance; parsing a prefixed selector does not prove the internal part exists or is painted. Preserve native semantics, labels and keyboard operation. The standard host styling example is a limited alternative, not exact internal styling.
Formal Syntax & Structure
css syntaxcss
input[type=color]::-moz-color-swatchWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>::-moz-color-swatch</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:80px}input[type=color]::-moz-color-swatch{background-color:green}</style><body><label>Color <input id="a" type="color" value="#008000"></label></body></html>