Skip to main content
Question

REST API getCSSAsync does not send ellipse border radius

  • August 5, 2025
  • 2 replies
  • 41 views

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

2 replies

  • Author
  • New Participant
  • August 5, 2025

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


  • Figmate
  • October 7, 2025

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.