Skip to main content

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

@Junko3 could you please help me or someone else from the team, this is blocking an important client project.


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.