Enum style_traits::StyleParseErrorKind [] [src]

pub enum StyleParseErrorKind<'i> {
    BadUrlInDeclarationValueBlock(CowRcStr<'i>),
    BadStringInDeclarationValueBlock(CowRcStr<'i>),
    UnbalancedCloseParenthesisInDeclarationValueBlock,
    UnbalancedCloseSquareBracketInDeclarationValueBlock,
    UnbalancedCloseCurlyBracketInDeclarationValueBlock,
    PropertyDeclarationValueNotExhausted,
    UnexpectedDimension(CowRcStr<'i>),
    ExpectedIdentifier(Token<'i>),
    MediaQueryExpectedFeatureName(CowRcStr<'i>),
    MediaQueryExpectedFeatureValue,
    RangedExpressionWithNoValue,
    UnexpectedFunction(CowRcStr<'i>),
    UnexpectedNamespaceRule,
    UnexpectedImportRule,
    UnexpectedCharsetRule,
    UnsupportedAtRule(CowRcStr<'i>),
    UnspecifiedError,
    UnexpectedTokenWithinNamespace(Token<'i>),
    ValueError(ValueParseErrorKind<'i>),
    SelectorError(SelectorParseErrorKind<'i>),
    UnknownProperty(CowRcStr<'i>),
    UnknownVendorProperty,
    ExperimentalProperty,
    InvalidColor(CowRcStr<'i>, Token<'i>),
    InvalidFilter(CowRcStr<'i>, Token<'i>),
    OtherInvalidValue(CowRcStr<'i>),
    AnimationPropertyInKeyframeBlock,
    NotAllowedInPageRule,
}

Errors that can be encountered while parsing CSS values.

Variants

A bad URL token in a DVB.

A bad string token in a DVB.

Unexpected closing parenthesis in a DVB.

Unexpected closing bracket in a DVB.

Unexpected closing curly bracket in a DVB.

A property declaration value had input remaining after successfully parsing.

An unexpected dimension token was encountered.

Expected identifier not found.

Missing or invalid media feature name.

Missing or invalid media feature value.

min- or max- properties must have a value.

A function was encountered that was not expected.

@namespace must be before any rule but @charset and @import

@import must be before any rule but @charset

Unexpected @charset rule encountered.

Unsupported @ rule

A placeholder for many sources of errors that require more specific variants.

An unexpected token was found within a namespace rule.

An error was encountered while parsing a property value.

An error was encountered while parsing a selector

The property declaration was for an unknown property.

An unknown vendor-specific identifier was encountered.

The property declaration was for a disabled experimental property.

The property declaration contained an invalid color value.

The property declaration contained an invalid filter value.

The property declaration contained an invalid value.

The declaration contained an animation property, and we were parsing this as a keyframe block (so that property should be ignored).

See: https://drafts.csswg.org/css-animations/#keyframes

The property is not allowed within a page rule.

Methods

impl<'i> StyleParseErrorKind<'i>
[src]

[src]

Create an InvalidValue parse error

Trait Implementations

impl<'i> Clone for StyleParseErrorKind<'i>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'i> Debug for StyleParseErrorKind<'i>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'i> PartialEq for StyleParseErrorKind<'i>
[src]

[src]

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

[src]

This method tests for !=.

impl<'i> From<ValueParseErrorKind<'i>> for StyleParseErrorKind<'i>
[src]

[src]

Performs the conversion.

impl<'i> From<SelectorParseErrorKind<'i>> for StyleParseErrorKind<'i>
[src]

[src]

Performs the conversion.