7. remove-rule

remove-rule(selector?)

Remove “interned” CSS rule having selector selector.

For this command to work, command parse-styles must have been invoked in order to “intern” the CSS classes found in all the elements of the document being edited.

Argument selector the CSS rule specifies which should be removed. Defaults to the empty string "", which means: remove all CSS rules.

Examples:

(: Remove all rules. :)
remove-rule();

(: Remove rule #0. :)
remove-rule(0);

(: Remove rule "p". :)
remove-rule("p");

(: Remove all rules matching "/n-\d+/". :)
remove-rule("/n-\d+/");

See also add-rule, set-rule.

Related XPath extension functions: find-rule, get-rule.