Re: [csswg-drafts] [css-forms-1] Pseudo-elements and structure for `<input type="color">` (#11837)

Something like this for the swatch styles looks okay. Would need to think more on how to handle alpha.

```css
::color-swatch {
    background-color: control-value(<color>);
    width: 1.5em;
    border: 1px solid currentColor;
}
```

Per the current spec styles + my idea above you end up with:

<img width="214" alt="Image" src="https://github.com/user-attachments/assets/14cd93d4-9077-41d4-a22c-a3149354d274" />

-- 
GitHub Notification of comment by lukewarlow
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11837#issuecomment-2704941965 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 6 March 2025 21:06:31 UTC