media method

media

Sets the ‘media’ attribute of the SVG ‘style’ element. This attribute specifies the media for which the styles are intended, allowing the styles to be conditional on the media type.

Returns

The SVGStyleElementBuilder instance for chaining.

def media(self, media_descriptors):
    ...
ParameterTypeDescription
media_descriptorsstrThe media descriptor string (e.g., “screen”, “print”).

See Also