::-moz-color-swatch CSS pseudo-elementNon-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The ::-moz-color-swatch CSS pseudo-element is a Mozilla extension that represents the color selected in an <input> of type="color".
Note: Using ::-moz-color-swatch with anything but an <input type="color"> doesn't match anything and has no effect.
::-moz-color-swatch {
/* ... */
}<input type="color" value="#de2020" />input[type="color"]::-moz-color-swatch {
border-radius: 10px;
border-style: none;
}Not part of any standard.
::-webkit-color-swatch, pseudo-element supported by WebKit and Blink (Safari, Chrome, and Opera)