MDN self-hosted library · e01.org

`::-moz-color-swatch` CSS pseudo-element

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
::-moz-color-swatch {
  /* ... */
}
html
<input type="color" value="#de2020" />
css
input[type="color"]::-moz-color-swatch {
  border-radius: 10px;
  border-style: none;
}