mizchi/crater-css/cascade does not have a README file
pub struct CSSRule {
selector_text : String
selector : ComplexSelector
declarations : Array[Declaration]
source_order : Int
media_query : MediaQueryList?
}pub(all) struct Declaration {
property : String
value : PropertyValue
origin : Origin
importance : Importance
specificity : Specificity
source_order : Int
}impl Show for Declarationfn Declaration::from_inline(property : String, value : String, importance : Importance) -> Declarationfn Declaration::with_metadata(property : String, value : PropertyValue, origin : Origin, importance : Importance, specificity : Specificity, source_order : Int) -> Declarationpub(all) enum Importance {
Normal
Important
}impl Show for Importancefn IndexedStylesheet::match_element(self : IndexedStylesheet, element : Element) -> Array[RuleMatch]fn IndexedStylesheet::match_element_with_media(self : IndexedStylesheet, element : Element, media_env : MediaEnvironment?) -> Array[RuleMatch]pub(all) enum Origin {
UserAgent
User
Author
}pub(all) enum PropertyValue {
Value(String)
Inherit
Initial
Unset
Revert
RevertLayer
}impl Show for PropertyValuepub(all) struct RuleMatch {
specificity : Specificity
declarations : Array[Declaration]
source_order : Int
}fn Stylesheet::add_rule(self : Stylesheet, selector_text : String, selector : ComplexSelector, declarations : Array[Declaration]) -> Unitfn Stylesheet::add_rule_with_media(self : Stylesheet, selector_text : String, selector : ComplexSelector, declarations : Array[Declaration], media_query : MediaQueryList) -> Unitfn Stylesheet::match_element_with_media(self : Stylesheet, element : Element, media_env : MediaEnvironment?) -> Array[RuleMatch]fn cascade_element(element : Element, stylesheets : Array[Stylesheet], inline_style : Array[Declaration]) -> CascadedValuesfn cascade_element_indexed(element : Element, stylesheets : Array[IndexedStylesheet], inline_style : Array[Declaration], media_env : MediaEnvironment?) -> CascadedValuesfn cascade_element_with_forced_states(element : Element, stylesheets : Array[Stylesheet], inline_style : Array[Declaration], media_env : MediaEnvironment?, forced : ForcedPseudoStates) -> CascadedValuesfn cascade_element_with_media(element : Element, stylesheets : Array[Stylesheet], inline_style : Array[Declaration], media_env : MediaEnvironment?) -> CascadedValuesCSS parser, selector, cascade, and computed style engine for crater
Dependencies