insert_rule method

insert_rule

Used to insert a new rule into the media block.

Returns

The inserted index.

def insert_rule(self, rule, index):
    ...
ParameterTypeDescription
rulestrThe media rule.
indexintThe index.

See Also