property
Path length — CSS reference
The proposed CSS property supplies an author-defined length calibration for SVG geometry, affecting distance calculations such as stroke dashes. The established SVG pathLength attribute is the fallback; it does not change the physical length reported by getTotalLength(). CSS syntax is not accepted by the test browser.
Formal Syntax & Structure
css syntaxcss
path-length: 100;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>path-length</title><style>body{margin:8px;font:16px/24px sans-serif}#a{path-length:100;stroke-dasharray:10 10}</style><body><svg width="220" height="40"><path id="a" d="M10 20H210" pathLength="100" fill="none" stroke="black" stroke-width="4"/></svg></body></html>