Milky2018/css/selector does not have a README file
pub(all) struct Attribute {
name : String
value : String
}pub enum AttributeMatch {
Exists
Exact(String)
Includes(String)
DashMatch(String)
Prefix(String)
Suffix(String)
Substring(String)
}impl Show for AttributeMatchpub struct AttributeSelector {
name : String
match_type : AttributeMatch
case_insensitive : Bool
any_namespace : Bool
}impl Show for AttributeSelectorpub enum Combinator {
Descendant
Child
NextSibling
SubsequentSibling
}impl Show for Combinatorimpl Show for ComplexSelectorpub struct CompoundSelector {
type_selector : SimpleSelector?
subclasses : Array[SimpleSelector]
any_ns_universal : Bool
}impl Show for CompoundSelectorpub struct NthExpr {
a : Int
b : Int
}pub enum PseudoClass {
FirstChild
LastChild
OnlyChild
NthChild(NthExpr)
NthLastChild(NthExpr)
FirstOfType
LastOfType
OnlyOfType
NthOfType(NthExpr)
NthLastOfType(NthExpr)
Root
Empty
Not(Array[ComplexSelector])
Is(Array[ComplexSelector])
Where(Array[ComplexSelector])
Has(Array[RelativeSelector])
State(String)
Host
HostFunc(CompoundSelector)
HostContextFunc(CompoundSelector)
Heading(Array[Int])
Dir(String)
Lang(Array[String])
Hover
Active
Focus
FocusVisible
FocusWithin
Link
Visited
AnyLink
Enabled
Disabled
Checked
Indeterminate
Required
Optional
Valid
Invalid
ReadOnly
ReadWrite
}impl Show for PseudoClasspub enum PseudoElement {
Before
After
FirstLine
FirstLetter
Marker
Placeholder
Selection
Backdrop
FileSelectorButton
PlaceholderShown
TargetText
SpellingError
GrammarError
Cue
Part(Array[String])
Slotted(Array[CompoundSelector])
}impl Show for PseudoElementfn ShadowContext::set_host_ancestors(self : ShadowContext, host_ancestors : Array[Element]) -> ShadowContextpub enum SimpleSelector {
Type(String)
Universal
Id(String)
Class(String)
Attribute(AttributeSelector)
PseudoClass(PseudoClass)
PseudoElement(PseudoElement)
}impl Show for SimpleSelectorimpl Show for Specificityfn matches_complex_with_forced_states(element : Element, selector : ComplexSelector, forced : ForcedPseudoStates) -> Boolfn matches_complex_with_shadow_context(element : Element, selector : ComplexSelector, context : ShadowContext?) -> Boolfn matches_pseudo_class_with_forced_states(element : Element, pc : PseudoClass, forced : ForcedPseudoStates) -> Boolfn matches_selector_list_with_shadow_context(element : Element, list : SelectorList, context : ShadowContext?) -> Boolfn parse_selector_list_from_tokens(tokens : Array[Token], start : Int, end : Int) -> Array[ComplexSelector]CSS parser, selector, cascade, and computed-style core maintained for Milky2018/svg