data-type

<box-edge> — CSS reference

Box edge keywords identify reference edges; available choices depend on the property and HTML or SVG context. A content-box clip excludes padding and borders.

Formal Syntax & Structure

css syntaxcss
clip-path: content-box;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>&lt;box-edge&gt;</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:100px;height:80px;padding:10px;clip-path:content-box;background:red}</style><body><div id="a">Example</div></body></html>
CSS Reference