CssSelector

simple CSS selector

Currently supports only element name and universal selector.

- * { } - universal selector - element-name { } - selector by element name - element1, element2 { } - several selectors delimited by comma

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

apply
void apply(Node node, CssStyle style)

apply to style if selector matches

check
bool check(Node node)

check if selector rules match this node

insertRuleAfterStart
void insertRuleAfterStart(CssSelectorRule rule)
Undocumented in source. Be warned that the author may not have intended to support it.
insertRuleStart
void insertRuleStart(CssSelectorRule rule)
Undocumented in source. Be warned that the author may not have intended to support it.
setDeclaration
void setDeclaration(CssDeclaration decl)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

id
elem_id id [@property getter]

get element tag id (0 - any tag)

id
elem_id id [@property setter]

set element tag id (0 - any tag)

Meta