Limited Availability
SVG
context-fill and context-stroke
The
context-fill and context-stroke CSS values are used with fill and stroke in SVG <marker> or <use> elements to match a color from where they appear.
Baseline Status:
This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Apr 18, 2024.
Desktop Browser Engine Support
Google Chrome
124
Supported
Mozilla Firefox
111
Supported
Apple Safari
—
Unsupported
Microsoft Edge
124
Supported
Mobile Browser Engine Support
Chrome Android
124
Firefox Android
111
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
svg.elements.circle.fill.context-fill ↗
svg.elements.ellipse.fill.context-fill ↗
svg.elements.path.fill.context-fill ↗
svg.elements.polygon.fill.context-fill ↗
svg.elements.polyline.fill.context-fill ↗
svg.elements.rect.fill.context-fill ↗
svg.elements.text.fill.context-fill ↗
svg.elements.textPath.fill.context-fill ↗
svg.elements.tspan.fill.context-fill ↗
svg.global_attributes.stroke.context-stroke ↗
id: context-fill-stroke