Adds two CSS features. The 'clip' value results in a box’s content being clipped to the box's overflow clip edge. In addition, no scrolling interface is provided, and the content can not be scrolled by the user or programmatically. The overflow-clip-margin property enables specifying how far outside the bounds an element is allowed to paint before being clipped.
overflow: clip enables developers to disallow any type of scrolling for the box, including programmatic scrolling. Additionally the box is not considered a scroll container, and does not start a new formatting context. Overflow: clip also allows for reducing memory as compared to overflow: hidden. overflow-clip-margin allows the developer to expand the clip border. This is particularly useful for cases where there is ink overflow that should be visible. Part of the CSS working draft, and Firefox is shipping it soon: https://groups.google.com/g/mozilla.dev.platform/c/7oQm8PC0aU0 .
Status in Chromium
In developer trial (Behind a flag) (tracking bug) in:
- Chrome for desktop release 89
- Chrome for Android release 89
- Android WebView release 89
Consensus & Standardization
Last updated on 2021-01-19