The Rule object represents a CSS selector and container for a set of declarations.
$rule = $this->Css->Rule();
The class inheritance for the object.
The configuration parameters for the template.
Name | Type | Default | Description |
---|---|---|---|
selector | string | * | Defines the CSS query selector for the contained declarations. |
The properties affecting object behavior.
Property | Value | Description |
---|---|---|
Allow parent | true | Determines if the object can have a parent. |
Allow children | true | Determines if the object can have children. |
Allow events | false | Determines if events can be added to the object. |
Limit parent | Defines the allowed parents for the object, or any if none specified. | |
Limit children | CssDeclaration | Defines the allowed children for the object, or any if none specified. |
None.