CKTIS / CSS
CSS property `overflow-clip-margin`
`overflow-clip-margin` extends the overflow clip edge beyond the padding box without creating a scrollable area.
Version: CSS modules; captured CSSWG editor index includes draft and obsolete features requiring review
Syntax
<visual-box> || <length [0,∞]>overflow-clip-margin extends the overflow clip edge beyond the padding box without creating a scrollable area.
The example uses overflow:clip, sets the clip margin, and reports the computed value with unchanged box geometry.
Grammar: <visual-box> || <length [0,∞]>. This example does not replace wheel and touch testing on the target device.
It affects painting rather than layout geometry or scrollWidth; with other overflow modes it does not define the visible clipping edge.
Examples
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>CKTIS CSS reference example</title><body><pre id="result"></pre><script>
const x=document.createElement("div"),c=document.createElement("i");document.body.prepend(x);x.append(c);x.style.cssText="width:80px;height:40px;overflow:clip;overflow-clip-margin:12px";c.style.cssText="display:block;width:120px;height:60px";const b=x.getBoundingClientRect();document.querySelector("#result").textContent="box="+Math.round(b.width)+"x"+Math.round(b.height)+"; scroll="+x.scrollWidth+"x"+x.scrollHeight+"; computed="+getComputedStyle(x).overflowClipMargin;
</script></body></html>Result
box=80x40; scroll=120x60; computed=12px
The example was executed locally in an isolated, network-free Chrome session; the result comes from the browser CSS API.