Enum style::properties::PropertyId [] [src]

pub enum PropertyId {
    Longhand(LonghandId),
    Shorthand(ShorthandId),
    LonghandAlias(LonghandIdAliasId),
    ShorthandAlias(ShorthandIdAliasId),
    Custom(Name),
}

Servo's representation of a CSS property, that is, either a longhand, a shorthand, or a custom property.

Variants

A longhand property.

A shorthand property.

An alias for a longhand property.

An alias for a shorthand property.

A custom property.

Methods

impl PropertyId
[src]

[src]

Return the longhand id that this property id represents.

[src]

Returns a given property from the string s.

Returns Err(()) for unknown non-custom properties.

[src]

Given this property id, get it either as a shorthand or as a PropertyDeclarationId.

[src]

Returns the name of the property without CSS escaping.

Trait Implementations

impl Clone for PropertyId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for PropertyId
[src]

impl PartialEq for PropertyId
[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 Debug for PropertyId
[src]

[src]

Formats the value using the given formatter. Read more

impl ToCss for PropertyId
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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