"Screenshot of Chrome DevTools showing the shadow DOM of the <code/><input type='color'/>. Right at the top, we have a div which is the swatch wrapper and can be accessed using ::-webkit-color-swatch-wrapper. Inside it, there's another div which is the swatch and can be accessed using ::-webkit-color-swatch. This div has the background-color set to the value of the parent color input.""><figcaption>Inner structure in Chrome.</figcaption></figure> <p>In Firefox, we only see one <code><div></code>, but it's not labeled in any way, so how do we access it?</p> <p>On a hunch, given this <code><div></code> has the <code>background-color</code> set to the input's <code>value</code> attribute, just like the <code>::-webkit-color-swatch</code> component, I tried <code>::-moz-color-swatch</code>. And it turns out it works!</p> <figure><img class="
{}