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

> If the first [color stop](https://drafts.csswg.org/css-images-4/#color-stop) does not have a position, set its position to 0%. If the last color stop does not have a position, set its position to 100%.

So does the first allocated position win, giving 0%? Because by the second clause, it *does* have a position?

As [I said earlier](https://github.com/w3c/csswg-drafts/issues/10092#issuecomment-2230892477), a position of 50% for a single color stop gradient is preferable. As currently described, if a new stop is inserted at the start, which wins? And what is the intended result? 50% gives a more natural meaning when stops are added.

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


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

Received on Friday, 19 July 2024 11:21:58 UTC