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

Yeah, the restriction was just because you're defining a *gradient*, and by definition that requires two colors to interpolate between. But there's nothing *wrong* with allowing a single color, certainly. And if browsers are already allowing a single stop *when it has two positions*, contrary to the spec grammar (probably because they expand that at parse-time into two stops in their internal representation, and then just check that the internal list is at least 2 items), then I really don't see an issue.

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


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

Received on Friday, 26 April 2024 20:36:25 UTC