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

This seems to replicate the WebKit approach of a single white and black triangle background.

```css
background:
linear-gradient(control-value(<color>) 0 0),
linear-gradient(
        to bottom right, 
        black 50%,
        white 50%
);

width: 1.5em;
border: 1px solid currentColor;
```

-- 
GitHub Notification of comment by lukewarlow
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11837#issuecomment-2705108403 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 22:45:40 UTC