property
Offset — CSS reference
Shorthand sets offset-position, offset-path, offset-distance, offset-rotate and offset-anchor. The slash separates anchor from the path-related values. Omitted longhands reset to their initial values.
Formal Syntax & Structure
css syntaxcss
offset: path("M 20 40 L 120 40") 75% 0deg / 0 0;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>offset</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#stage{position:relative;width:240px;height:160px;background:#eee}#a{position:absolute;left:0;top:0;width:20px;height:20px;padding:0;background:blue;offset-path:path("M 20 40 L 120 40");offset-distance:50%;offset-anchor:0 0;offset-rotate:0deg}#a{offset:path("M 20 40 L 120 40") 75% 0deg / 0 0}</style><body><div id="stage"><div id="a" aria-label="Path marker"></div></div></body></html>