property
shape-image-threshold — CSS reference
Sets alpha cutoff for image-derived float shapes. Initial 0; not inherited. Only pixels with alpha strictly above the cutoff contribute to exclusion. Does not change image appearance or apply to geometric shapes.
Formal Syntax & Structure
css syntaxcss
<number> (clamped to [0,1])Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS masking and shapes lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative;margin:20px;width:80px;height:60px;background:red;box-sizing:content-box}#wrap{width:240px;font:16px/20px monospace} #a{float:left;position:static;margin:0;width:80px;height:80px;background:linear-gradient(to right,red 50%,transparent 50%)}#a{shape-outside:linear-gradient(to right,black 50%,rgba(0,0,0,.25) 50%);shape-image-threshold:.5}</style><body><div id="wrap"><div id="a" aria-hidden="true"></div><span id="t">One two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty.</span></div></body></html>