CKTIS / CSS
CSS property `marker`
`marker` assigns start, middle, and end markers to SVG geometry.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
none | <marker-ref>marker assigns start, middle, and end markers to SVG geometry.
The example applies the property to a path backed by a local marker definition and reports the relevant computed value.
The accepted grammar is none | <marker-ref>; global values still participate in the cascade.
A marker paints only at an existing path vertex; marker-mid needs an intermediate vertex, and orientation may follow path direction.
Examples
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>CKTIS CSS reference example</title>
<body><div class="probe">probe</div><pre id="result"></pre><script>
document.body.innerHTML='<svg><defs><marker id="m" markerWidth="4" markerHeight="4" refX="2" refY="2"><circle cx="2" cy="2" r="2"/></marker></defs><path id="x" d="M0 10 L20 10 L40 10"/></svg><pre id="result"></pre>';const x=document.querySelector("#x");x.style.setProperty("marker",'url("#m")');const s=getComputedStyle(x);document.querySelector("#result").textContent="vertices=3; computed="+s.getPropertyValue("marker").trim();
</script></body></html>Result
vertices=3; computed=url("#m")The example was executed locally in an isolated, network-free Chrome session; the result comes from the browser CSS API.