Enum selectors::context::VisitedHandlingMode[][src]

pub enum VisitedHandlingMode {
    AllLinksUnvisited,
    AllLinksVisitedAndUnvisited,
    RelevantLinkVisited,
}

The mode to use when matching unvisited and visited links.

Variants

All links are matched as if they are unvisted.

All links are matched as if they are visited and unvisited (both :link and :visited match).

This is intended to be used from invalidation code, to be conservative about whether we need to restyle a link.

A element's "relevant link" is the element being matched if it is a link or the nearest ancestor link. The relevant link is matched as though it is visited, and all other links are matched as if they are unvisited.

Methods

impl VisitedHandlingMode
[src]

Trait Implementations

impl Clone for VisitedHandlingMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for VisitedHandlingMode
[src]

impl Debug for VisitedHandlingMode
[src]

Formats the value using the given formatter. Read more

impl Eq for VisitedHandlingMode
[src]

impl PartialEq for VisitedHandlingMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations