files/en-us/web/css/reference/values/shape/index.md
{{deprecated_header}}
The <shape> CSS data type defines the specific form (shape) of a region. The region represents the part of an element to which the {{cssxref("clip")}} property applies.
[!NOTE]
<shape>andrect()work in conjunction with {{cssxref("clip")}}, which has been deprecated in favor of {{cssxref("clip-path")}}. When possible, useclip-pathand the {{cssxref("basic-shape")}} data type instead.
The <shape> data type is specified using the rect() function, which produces a region in the form of a rectangle.
rect()
rect(top, right, bottom, left)
When animated, values of the <shape> data type are interpolated over their top, right, bottom, and left components, each treated as a real, floating-point number. The speed of the interpolation is determined by the easing function associated with the animation.
img.clip04 {
clip: rect(10px, 20px, 20px, 10px);
}
{{Specifications}}
{{Compat}}