Baseline Widely Clipping, shapes, and masking
rect() and xywh()
The rect() CSS function creates a rectangle shape with insets from the edges of an element. The xywh() CSS function creates a rectangle shifted by an x and y distance. They can be used with clip-path and shape-outside.
Baseline Status
Widely Available
Since 2024-01-23
First Core Launch
Chrome 119
2023-10-31
Core-3 Stability
84d
Last: Firefox (2024-01-23)
BCD Keys Mapped
2
Group: Clipping, shapes, and masking
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 119 | 2023-10-31 |
| Chrome Android | mobile | 119 | 2023-10-31 |
| Edge | desktop | 119 | 2023-11-02 |
| Safari | desktop | 17.2 | 2023-12-11 |
| Safari on iOS | mobile | 17.2 | 2023-12-11 |
| Firefox | desktop | 122 | 2024-01-23 |
| Firefox for Android | mobile | 122 | 2024-01-23 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.types.basic-shape.rect | CSS | 84d |
| css.types.basic-shape.xywh | CSS | 84d |