PXRuleSet Class Reference
| Inherits from | PXDeclarationContainer : NSObject |
| Declared in | PXRuleSet.h |
Overview
A PXRuleSet represents a single CSS rule set. A rule set consists of selectors and declarations. A specificity is associated with each rule set to assist in the calculation of weights and cascading of declarations.
Tasks
-
selectorsA nonmutable array of selectors.
property -
specificityThe specificity of this rule set as calculated based on the rule set’s selectors
property -
targetTypeSelectorReturns the final selector which determines what target types will be selected
property -
+ ruleSetWithMergedRuleSets:A class method used to merge multiple rule sets into a single rule set, taking specificity of each rule set into account. The resulting rule set’s selectors and specificity properties are undefined.
-
– addSelector:Add a selector to the list of selectors associated with this rule set
-
– matches:Determine if a given element matches the selector associated with this rule set
Properties
selectors
A nonmutable array of selectors.
@property (readonly, nonatomic) NSArray *selectorsDiscussion
A nonmutable array of selectors.
When a selector consists of a comma-delimited list, each item is added to this rule set
Declared In
PXRuleSet.hClass Methods
ruleSetWithMergedRuleSets:
A class method used to merge multiple rule sets into a single rule set, taking specificity of each rule set into account. The resulting rule set’s selectors and specificity properties are undefined.
+ (id)ruleSetWithMergedRuleSets:(NSArray *)ruleSetsParameters
- ruleSets
An array of rule sets to merge
Discussion
A class method used to merge multiple rule sets into a single rule set, taking specificity of each rule set into account. The resulting rule set’s selectors and specificity properties are undefined.
Declared In
PXRuleSet.h