mizchi/crater-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 enum Combinator {
Descendant
Child
NextSibling
SubsequentSibling
}impl Show for Combinatorimpl Show for ComplexSelectorimpl 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[CompoundSelector])
Is(Array[ComplexSelector])
Where(Array[ComplexSelector])
Has(Array[RelativeSelector])
State(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
}impl Show for PseudoElementpub 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_pseudo_class_with_forced_states(element : Element, pc : PseudoClass, forced : ForcedPseudoStates) -> BoolCSS parser, selector, cascade, and computed style engine for crater
Dependencies