Holds a set of selector styles. A selector is something like .name or #name.
Public Member Functions | |
StyleSheet (Node owner) | |
Creates an empty stylesheet that belongs to the given document. More... | |
void | insertRule (string css, int index) |
Adds a new rule to the set. More... | |
void | Add (Rule rule, Rule[] set, bool immediate) |
void | ParseCss (string css) |
Keeps reading selectors and their properties until a > or the end of the css is reached. More... | |
Public Attributes | |
Rule | ownerRule |
The rule that imported this stylesheet. More... | |
Dom.Location | Location |
The full location of this sheet. More... | |
CssNamespace | Namespace |
The default namespace being used if any. More... | |
Dictionary< string, CssNamespace > | Namespaces |
Css namespace prefixes, if any. More... | |
List< Css.Rule > | cssRules =new List<Css.Rule>() |
The rules on this style sheet. Note that CSS lookups don't use this set. Instead, all CSS lookups route through a single set on the document itself. More... | |
Node | ownerNode |
The owning element of this style sheet. More... | |
Package Functions | |
void | RemoveSheet (ReflowDocument document) |
Removes this stylesheet from the given documents fast lookups. More... | |
void | ReAddSheet (ReflowDocument document) |
Adds this stylesheet to the documents fast lookups. This is used by the default stylesheet. More... | |
Package Attributes | |
int | Priority |
The priority (load order) of this stylesheet. More... | |
Properties | |
bool | IsUserAgent [get] |
True if this is a UA sheet. More... | |
ReflowDocument | document [get] |
The document this sheet belongs to, if any. More... | |
bool | disabled [get, set] |
Is this stylesheet disabled? More... | |
string | title [get] |
This sheets title. More... | |
List< Css.Rule > | rules [get] |
The rules on this style sheet. More... | |
Node | owningElement [get] |
The owning element of this style sheet. More... | |
string | href [get] |
The URL of this stylesheet (if it's external). More... | |
string | media [get] |
The media. More... | |
string | type [get] |
This style sheets type. More... | |
Private Attributes | |
bool | IsDisabled |
True if this sheet is disabled. More... | |
|
inline |
Creates an empty stylesheet that belongs to the given document.
document | The html document that this sheet belongs to. |
|
inline |
Adds a new rule to the set.
|
inline |
Keeps reading selectors and their properties until a > or the end of the css is reached.
css | The css text to parse. |
|
inlinepackage |
Adds this stylesheet to the documents fast lookups. This is used by the default stylesheet.
|
inlinepackage |
Removes this stylesheet from the given documents fast lookups.
The rules on this style sheet. Note that CSS lookups don't use this set. Instead, all CSS lookups route through a single set on the document itself.
|
private |
True if this sheet is disabled.
Dom.Location Css.StyleSheet.Location |
The full location of this sheet.
CssNamespace Css.StyleSheet.Namespace |
The default namespace being used if any.
Dictionary<string,CssNamespace> Css.StyleSheet.Namespaces |
Css namespace prefixes, if any.
Node Css.StyleSheet.ownerNode |
The owning element of this style sheet.
Rule Css.StyleSheet.ownerRule |
The rule that imported this stylesheet.
|
package |
The priority (load order) of this stylesheet.
|
getset |
Is this stylesheet disabled?
|
get |
The document this sheet belongs to, if any.
|
get |
The URL of this stylesheet (if it's external).
|
get |
True if this is a UA sheet.
|
get |
The media.
|
get |
The owning element of this style sheet.
|
get |
The rules on this style sheet.
|
get |
This sheets title.
|
get |
This style sheets type.