package pseudos
Variables
PseudoMap
map[string]Pseudo{
"active": Active{},
"any-link": AnyLink{},
"autofill": Autofill{},
"blank": Blank{},
"checked": Checked{},
"current": Current{},
"default": Default{},
"defined": Defined{},
"dir": Dir{},
"disabled": Disabled{},
"empty": Empty{},
"enabled": Enabled{},
"first": First{},
"first-child": FirstChild{},
"first-of-type": FirstOfType{},
"fullscreen": Fullscreen{},
"future": Future{},
"focus": Focus{},
"focus-visible": FocusVisible{},
"focus-within": FocusWithin{},
"has": Has{},
"host": Host{},
"host-context": HostContext{},
"hover": Hover{},
"indeterminate": Indeterminate{},
"in-range": InRange{},
"invalid": Invalid{},
"is": Is{},
"lang": Lang{},
"last-child": LastChild{},
"last-of-type": LastOfType{},
"left": Left{},
"link": Link{},
"local-link": LocalLink{},
"modal": Modal{},
"not": Not{},
"nth-child": NthChild{},
"nth-col": NthCol{},
"nth-last-child": NthLastChild{},
"nth-last-col": NthLastCol{},
"nth-last-of-type": NthLastOfType{},
"nth-of-type": NthOfType{},
"only-child": OnlyChild{},
"only-of-type": OnlyOfType{},
"optional": Optional{},
"out-of-range": OutOfRange{},
"past": Past{},
"picture-in-picture": PictureInPicture{},
"placeholder-shown": PlaceholderShown{},
"paused": Paused{},
"playing": Playing{},
"read-only": ReadOnly{},
"read-write": ReadWrite{},
"required": Required{},
"right": Right{},
"root": Root{},
"scope": Scope{},
"state": State{},
"target": Target{},
"target-within": TargetWithin{},
"user-invalid": UserInvalid{},
"valid": Valid{},
"visited": Visited{},
"where": Where{},
}
Types
Active
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:active
Active.AlterRules
Active.IsFunction
Active.Key
Active.Process
func (p Active) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
AnyLink
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link
AnyLink.AlterRules
AnyLink.IsFunction
AnyLink.Key
AnyLink.Process
func (p AnyLink) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Autofill
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill
Autofill.AlterRules
Autofill.IsFunction
Autofill.Key
Autofill.Process
func (p Autofill) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Blank
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:blank
Blank.AlterRules
Blank.IsFunction
Blank.Key
Blank.Process
func (p Blank) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Checked
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:checked
Checked.AlterRules
Checked.IsFunction
Checked.Key
Checked.Process
func (p Checked) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Current
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:current
Current.AlterRules
Current.IsFunction
Current.Key
Current.Process
func (p Current) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Default
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:default
Default.AlterRules
Default.IsFunction
Default.Key
Default.Process
func (p Default) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Defined
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:defined
Defined.AlterRules
Defined.IsFunction
Defined.Key
Defined.Process
func (p Defined) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Dir
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:dir
Dir.AlterRules
Dir.IsFunction
Dir.Key
Dir.Process
Disabled
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled
Disabled.AlterRules
Disabled.IsFunction
Disabled.Key
Disabled.Process
func (p Disabled) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Empty
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:empty
Empty.AlterRules
Empty.IsFunction
Empty.Key
Empty.Process
func (p Empty) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Enabled
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:enabled
Enabled.AlterRules
Enabled.IsFunction
Enabled.Key
Enabled.Process
func (p Enabled) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
First
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:first
First.AlterRules
First.IsFunction
First.Key
First.Process
func (p First) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
FirstChild
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child
FirstChild.AlterRules
FirstChild.IsFunction
FirstChild.Key
FirstChild.Process
func (p FirstChild) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
FirstOfType
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:first-of-type
FirstOfType.AlterRules
FirstOfType.IsFunction
FirstOfType.Key
FirstOfType.Process
func (p FirstOfType) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Focus
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus
Focus.AlterRules
Focus.IsFunction
Focus.Key
Focus.Process
func (p Focus) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
FocusVisible
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
FocusVisible.AlterRules
FocusVisible.IsFunction
FocusVisible.Key
FocusVisible.Process
func (p FocusVisible) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
FocusWithin
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within
FocusWithin.AlterRules
FocusWithin.IsFunction
FocusWithin.Key
FocusWithin.Process
func (p FocusWithin) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Fullscreen
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:fullscreen
Fullscreen.AlterRules
Fullscreen.IsFunction
Fullscreen.Key
Fullscreen.Process
func (p Fullscreen) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Future
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:future
Future.AlterRules
Future.IsFunction
Future.Key
Future.Process
func (p Future) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Has
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:has
Has.AlterRules
Has.IsFunction
Has.Key
Has.Process
Host
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:host
Host.AlterRules
Host.IsFunction
Host.Key
Host.Process
HostContext
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:host-context
HostContext.AlterRules
HostContext.IsFunction
HostContext.Key
HostContext.Process
func (p HostContext) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Hover
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:hover
Hover.AlterRules
Hover.IsFunction
Hover.Key
Hover.Process
func (p Hover) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
InRange
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:in-range
InRange.AlterRules
InRange.IsFunction
InRange.Key
InRange.Process
func (p InRange) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Indeterminate
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate
Indeterminate.AlterRules
Indeterminate.IsFunction
Indeterminate.Key
Indeterminate.Process
func (p Indeterminate) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Invalid
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid
Invalid.AlterRules
Invalid.IsFunction
Invalid.Key
Invalid.Process
func (p Invalid) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Is
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:is
Is.AlterRules
Is.IsFunction
Is.Key
Is.Process
Lang
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
Lang.AlterRules
Lang.IsFunction
Lang.Key
Lang.Process
LastChild
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child
LastChild.AlterRules
LastChild.IsFunction
LastChild.Key
LastChild.Process
func (p LastChild) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
LastOfType
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type
LastOfType.AlterRules
LastOfType.IsFunction
LastOfType.Key
LastOfType.Process
func (p LastOfType) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Left
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:left
Left.AlterRules
Left.IsFunction
Left.Key
Left.Process
Link
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:link
Link.AlterRules
Link.IsFunction
Link.Key
Link.Process
LocalLink
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:local-link
LocalLink.AlterRules
LocalLink.IsFunction
LocalLink.Key
LocalLink.Process
func (p LocalLink) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Modal
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:modal
Modal.AlterRules
Modal.IsFunction
Modal.Key
Modal.Process
func (p Modal) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Not
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:not
Not.AlterRules
Not.IsFunction
Not.Key
Not.Process
NthChild
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
NthChild.AlterRules
NthChild.IsFunction
NthChild.Key
NthChild.Process
func (p NthChild) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
NthCol
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-col
NthCol.AlterRules
NthCol.IsFunction
NthCol.Key
NthCol.Process
func (p NthCol) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
NthLastChild
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child
NthLastChild.AlterRules
NthLastChild.IsFunction
NthLastChild.Key
NthLastChild.Process
func (p NthLastChild) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
NthLastCol
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-col
NthLastCol.AlterRules
NthLastCol.IsFunction
NthLastCol.Key
NthLastCol.Process
func (p NthLastCol) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
NthLastOfType
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-of-type
NthLastOfType.AlterRules
NthLastOfType.IsFunction
NthLastOfType.Key
NthLastOfType.Process
func (p NthLastOfType) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
NthOfType
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type
NthOfType.AlterRules
NthOfType.IsFunction
NthOfType.Key
NthOfType.Process
func (p NthOfType) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
OnlyChild
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:only-child
OnlyChild.AlterRules
OnlyChild.IsFunction
OnlyChild.Key
OnlyChild.Process
func (p OnlyChild) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
OnlyOfType
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:only-of-type
OnlyOfType.AlterRules
OnlyOfType.IsFunction
OnlyOfType.Key
OnlyOfType.Process
func (p OnlyOfType) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Optional
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:optional
Optional.AlterRules
Optional.IsFunction
Optional.Key
Optional.Process
func (p Optional) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
OutOfRange
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:out-of-range
OutOfRange.AlterRules
OutOfRange.IsFunction
OutOfRange.Key
OutOfRange.Process
func (p OutOfRange) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Past
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:past
Past.AlterRules
Past.IsFunction
Past.Key
Past.Process
Paused
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:paused
Paused.AlterRules
Paused.IsFunction
Paused.Key
Paused.Process
func (p Paused) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
PictureInPicture
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:picture-in-picture
PictureInPicture.AlterRules
PictureInPicture.IsFunction
PictureInPicture.Key
PictureInPicture.Process
func (p PictureInPicture) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
PlaceholderShown
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:placeholder-shown
PlaceholderShown.AlterRules
PlaceholderShown.IsFunction
PlaceholderShown.Key
PlaceholderShown.Process
func (p PlaceholderShown) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Playing
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:playing
Playing.AlterRules
Playing.IsFunction
Playing.Key
Playing.Process
func (p Playing) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Pseudo
interface
type Pseudo interface {
Key() string
IsFunction() bool
Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
AlterRules(rules []rules.Rule) []rules.Rule
}
ReadOnly
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:read-only
ReadOnly.AlterRules
ReadOnly.IsFunction
ReadOnly.Key
ReadOnly.Process
func (p ReadOnly) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
ReadWrite
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:read-write
ReadWrite.AlterRules
ReadWrite.IsFunction
ReadWrite.Key
ReadWrite.Process
func (p ReadWrite) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Required
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:required
Required.AlterRules
Required.IsFunction
Required.Key
Required.Process
func (p Required) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Right
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:right
Right.AlterRules
Right.IsFunction
Right.Key
Right.Process
func (p Right) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Root
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:root
Root.AlterRules
Root.IsFunction
Root.Key
Root.Process
Scope
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
Scope.AlterRules
Scope.IsFunction
Scope.Key
Scope.Process
func (p Scope) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
State
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:state
State.AlterRules
State.IsFunction
State.Key
State.Process
func (p State) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Target
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:target
Target.AlterRules
Target.IsFunction
Target.Key
Target.Process
func (p Target) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
TargetWithin
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:target-within
TargetWithin.AlterRules
TargetWithin.IsFunction
TargetWithin.Key
TargetWithin.Process
func (p TargetWithin) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
UserInvalid
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:user-invalid
UserInvalid.AlterRules
UserInvalid.IsFunction
UserInvalid.Key
UserInvalid.Process
func (p UserInvalid) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Valid
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:valid
Valid.AlterRules
Valid.IsFunction
Valid.Key
Valid.Process
func (p Valid) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Visited
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:visited
Visited.AlterRules
Visited.IsFunction
Visited.Key
Visited.Process
func (p Visited) Process(elm *document.Element, value rules.SelectorPart) ([]*document.Element, error)
Where
struct
https://developer.mozilla.org/en-US/docs/Web/CSS/:where