-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Thanks for this polyfill, it's great and slots in perfectly. I notice the docs say that setting the centre point isn't supported. Is adding support for it likely?
Currently the use of at seems to be interpreted as a colour somehow. Gradients using the polyfill with a conic gradient which includes at do not fall back in the way I expect. I would expect that the gradient renders normally at the centre, but instead the behaviour is a bit different.
For example, the following gradient:
background: conic-gradient(at 50% 25%, yellow, lime, blue, violet, red);
It renders correctly natively in Chrome:

But renders like this in Firefox using the polyfill:

Additionally, if used with from, it throws a JS error, which prevents later conic gradients from rendering.
background: conic-gradient(from 90deg at 50% 25%, yellow, lime, blue, violet, red, yellow);
The error:
TypeError: prevStop.color.map is not a function (conic-gradient.js:184:12)
Metadata
Metadata
Assignees
Labels
No labels