Limited supportUseful when clip adds emphasis or visual refinement without becoming necessary for understanding content.

Overview

The clip CSS property sets the visible area of an absolutely positioned element.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
clip
Deprecated
1
12
1
1
18
1
auto
Deprecated
1
79
1
1
18
1
Other

The CSS data type defines the specific form (shape) of a region. The region represents the part of an element to which the clip property applies.

1
12
1
1.3
18
1
CSS type
rect
Deprecated

`rect()`

1
12
1
1.3
18
1
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
  • Safari incorrectly interprets `clip: auto` as `clip: rect(auto, auto, auto, auto)`.
Notes 1 item(s)
Implementation note
  • Safari on iOS incorrectly interprets `clip: auto` as `clip: rect(auto, auto, auto, auto)`.

Syntax

CSS
.visually-hidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
}

Live demo

visual to hide

CSS visual to hide demo.

PreviewFullscreen

partialclip

CSS partialclip demo.

PreviewFullscreen

Clip: Auto(normal)

CSS Clip: auto(normal) demo.

PreviewFullscreen

Use cases

  • Decorative enhancement

    Use clip to add depth, masking, blending, or special treatment to supporting visuals.

  • Brand expression

    Apply effects where the interface benefits from stronger visual identity but still works in simpler environments.

Cautions

  • Heavy effects can hurt performance or readability on lower-end devices.
  • Do not use visual effects as the only way to communicate meaning or state.

Accessibility

  • Maintain text contrast and focus visibility when applying overlays, filters, or blend effects.
  • Visual polish should never reduce content legibility.

Powered by web-features