How to reproduce
- Create ellipse layer in circle shape
- fetch getCSSAsync
What happens
- ellipse with plain fill, border or shadow do not have any border radius
- ellipse with image background or opacity get correct border radius
How to reproduce
What happens
Hi there,
Sorry for the late reply.
I couldn’t find getCSSAsync in the REST API docs, but it is documented in the Plugin API.
If you’re referring to the Plugin API, the documentation below says getCSSAsync returns the same CSS that appears in the Inspect panel: https://developers.figma.com/docs/plugins/api/WashiTapeNode/#getcssasync
Based on that, I tested on my side using Dev Mode code snippets and saw the same behavior you described:
Ellipse with an image fill: includes border-radius: 95px;
Ellipse with a color fill: does not include border-radius
I’ll reach out to our team to confirm whether this difference is intended. I’ll update this thread once I hear back.
Thanks.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.