Re: [csswg-drafts] [css-images-4] Allow gradients with a single color stop and 0-1 positions (#10092)

Firefox 136 has been implemented. Thanks @jfkthame 
- https://bugzilla.mozilla.org/show_bug.cgi?id=1900530

This technique is often needed in CSS masks: 

- https://css-tip.com/border-gradient/
- https://nikitahl.com/gradient-border-css

Now you can use individual colors in gradients, and the following syntax will work.

```
.foo {
   background-image: linear-gradient(red);
   background-image: conic-gradient(red);
   background-image: radial-gradient(red);
}
```

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


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

Received on Thursday, 23 January 2025 09:00:25 UTC