Remove “interned” CSS rule having 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.
selector the CSS rule specifies which should be removed. Defaults to the empty string "", which means: remove all CSS rules.
selector may be the empty string "", which means: remove all CSS rules.
selector may be the index of a CSS rule (possibly in string form) within the document being edited. First index is 0. Examples:
selector may be a selector. Examples: "
selector may be a selector pattern. Examples: "
/n-\d+/". This command removes all rules having selectors matching specified pattern.
A selector pattern has the following syntax:
^ (which is equivalent to
pattern is a regular expression pattern.
(: 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+/");