Control Directives

Control directives are triggered by CSS comments found between declarations or statements (rules and at-rules). They support processing any node type and can target one node (self-closing) or a set of nodes (block-syntax).

The begin function must return a boolean value to indicate if it is allowed to process this node by other directives or not.

true: prevent further processing.

false: allow further processing.

end{function}

The end function is responsible for cleanup and deactivation. It is executed after processing the expected node (if it was self-closing) or when the directive end statement (block-syntax) is encountred.