Expand description

The CSS properties supported by the style system. Generated from the properties.mako.rs template by build.rs

Re-exports

pub use self::declaration_block::*;
pub use self::cascade::*;

Modules

A module with all the code related to animated properties.

The main cascading algorithm of the style system.

A property declaration block.

A module with all the code for longhand properties.

A module with code for all the shorthand css properties, and a few serialization helpers.

The module where all the style structs are defined.

Macros

Structs

An iterator over the values of the animation-delay properties.

An iterator over the values of the animation-direction properties.

An iterator over the values of the animation-duration properties.

An iterator over the values of the animation-fill-mode properties.

An iterator over the values of the animation-iteration-count properties.

An iterator over the values of the animation-name properties.

An iterator over the values of the animation-play-state properties.

An iterator over the values of the animation-timing-function properties.

An atomically reference counted shared pointer

The struct that Servo uses to represent computed values.

Actual data of ComputedValues, to match up with Gecko

A custom property declaration with the property name and the declared value.

The initial values for all style structs as defined by the specification.

A set of logical groups.

A set of longhand properties

An iterator over a set of longhand ids.

A longhand or shorthand property.

A set of all properties

An iterator over all the property ids that are enabled for a given shorthand, if that shorthand is enabled for all content too.

A set of flags for properties.

A stack-allocated vector of PropertyDeclaration large enough to parse one CSS key: value declaration. (Shorthands expand to multiple PropertyDeclarations.)

Return type of SourcePropertyDeclaration::drain

A type used to compute a struct with minimal overhead.

An iterator over the values of the transition-delay properties.

An iterator over the values of the transition-duration properties.

An iterator over the values of the transition-property properties.

An iterator over the values of the transition-timing-function properties.

An unparsed property value that contains var() functions.

An unparsed declaration that contains var() functions.

A declaration using a CSS-wide keyword.

Enums

An identifier for a given alias property.

An enum to represent a CSS Wide keyword.

The counted unknown property list which is used for css use counters.

A custom property declaration value is either an unparsed value or a CSS wide-keyword.

A group for properties which may override each other via logical resolution.

An identifier for a given longhand property.

Servo’s representation for a property declaration.

An identifier for a given property declaration, which can be either a longhand or a custom property.

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

An identifier for a given shorthand property.

A reference to a style struct of the parent, or our own style struct.

Constants

The length of all counted unknown properties.

The length of all the non-custom properties.

Statics

A per-longhand array of functions to perform the CSS cascade on each of them, effectively doing virtual dispatch.

Traits

Conversion with fewer impls than From/Into

Functions

See StyleAdjuster::adjust_for_border_width.

clone_arc 🔒

Clone an arc, returning a regular arc

Type Definitions

A per-longhand function that performs the CSS cascade for that longhand.

A simple cache for properties that come from a shorthand and have variable references.