CSS stroke-opacity Property Reference

The CSS stroke-opacity property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

CSS stroke-opacity Property Reference

The CSS stroke-opacity property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

stroke-opacity overview

The CSS stroke-opacity property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

stroke-opacity formal syntax
FieldValue
Formal syntax<'opacity'>
Initial value1
Applies tolimitedSVGElementsShapes
InheritedYes
Percentagesno
Computed valuespecifiedValueClipped0To1
Animation typebyComputedValueType
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

These declarations demonstrate valid ways to set stroke-opacity. The initial and inherit global keywords remain available even when a property-specific value is preferable.

stroke-opacity live example
CSS .reset-example { stroke-opacity: initial; } .inherit-example { stroke-opacity: inherit; } @supports (stroke-opacity: initial) { .supported { stroke-opacity: initial; } }

Description

The CSS stroke-opacity property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: stroke-opacity
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies