add_rule method

add_rule

Adds a CSS rule to the style element.

Returns

The SVGStyleElementBuilder instance for chaining.

def add_rule(self, selector, rules):
    ...
ParameterTypeDescription
selectorstrThe CSS selector for the rule.
rulesstrThe CSS rules as a string.

See Also