data-type

<basic-shape> — CSS reference

Grammar category for geometric shapes. The consuming property decides which functions are valid and which reference box applies. Clip-path defaults to border-box, while shape-outside defaults to margin-box and accepts fewer functions.

Formal Syntax & Structure

css syntaxcss
<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()> | <rect()> | <xywh()> | <shape()> (module-dependent)

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}#a{clip-path:circle(20px)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative shape example.</p></body></html>
CSS Reference