Enum style::stylesheets::supports_rule::SupportsCondition [] [src]

pub enum SupportsCondition {
    Not(Box<SupportsCondition>),
    Parenthesized(Box<SupportsCondition>),
    And(Vec<SupportsCondition>),
    Or(Vec<SupportsCondition>),
    Declaration(Declaration),
    MozBoolPref(CString),
    FutureSyntax(String),
}

An @supports condition

https://drafts.csswg.org/css-conditional-3/#at-supports

Variants

not (condition)

(condition)

(condition) and (condition) and (condition) ..

(condition) or (condition) or (condition) ..

property-ident: value (value can be any tokens)

-moz-bool-pref("pref-name") Since we need to pass it through FFI to get the pref value, we store it as CString directly.

(any tokens) or func(any tokens)

Methods

impl SupportsCondition
[src]

[src]

[src]

Evaluate a supports condition

Trait Implementations

impl Clone for SupportsCondition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SupportsCondition
[src]

[src]

Formats the value using the given formatter. Read more

impl ToCss for SupportsCondition
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more