---
id: "rect-xywh"
kind: "web-feature"
canonical: "https://timetostable.com/feature/rect-xywh"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# rect() and xywh() (`rect-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.

- **Group**: Clipping, shapes, and masking
- **Baseline**: Widely Available
- **Newly Available Date**: 2024-01-23
- **Widely Available Date**: 2026-07-23
- **Specification**: https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-xywh
- **Constituent BCD keys**: 2

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 119 | 2023-10-31 |
| Chrome Android | 119 | 2023-10-31 |
| Edge | 119 | 2023-11-02 |
| Safari | 17.2 | 2023-12-11 |
| Safari on iOS | 17.2 | 2023-12-11 |
| Firefox | 122 | 2024-01-23 |
| Firefox for Android | 122 | 2024-01-23 |

