Canvas roundRect()
Newly available since 2023-04-11
The roundRect()
methods draw a rounded rectangle to a 2D canvas.
Learning resources on MDN
Browser support
- Chrome 99 Released on 2022-03-01
- Chrome Android 99 Released on 2022-03-01
- Edge 99 Released on 2022-03-03
- Firefox 112 Released on 2023-04-11
- Firefox for Android 112 Released on 2023-04-11
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- HTML Standard (#dom-context-2d-roundrect), from HTML Workstream (WHATWG).