Crate style_traits [] [src]

This module contains shared types and messages for use by devtools/script. The traits are here instead of in script so that the devtools crate can be modified independently of the rest of Servo.

Reexports

pub use values::Comma;
pub use values::CommaWithSpace;
pub use values::OneOrMoreSeparated;
pub use values::Separator;
pub use values::Space;
pub use values::ToCss;

Modules

cursor

A list of common mouse cursors per CSS3-UI § 8.1.1.

values

Helper types and traits for the handling of CSS values.

viewport

Helper types for the @viewport rule.

Macros

__define_css_keyword_enum__actual
__define_css_keyword_enum__add_optional_traits
define_css_keyword_enum
serialize_function

Structs

DevicePixel

Geometry in the coordinate system of the render target (screen or intermediate surface) in physical pixels.

ParsingMode

The mode to use when parsing values.

PinchZoomFactor

Represents a mobile style pinch zoom factor. TODO(gw): Once WR supports pinch zoom, use a type directly from webrender_api.

Enums

CSSPixel

One CSS "px" in the coordinate system of the "initial viewport": http://www.w3.org/TR/css-device-adapt/#initial-viewport

StyleParseErrorKind

Errors that can be encountered while parsing CSS values.

ValueParseErrorKind

Specific errors that can be encountered while parsing property values.

Traits

SpeculativePainter

Speculatively execute paint code in the worklet thread pool.

Type Definitions

ParseError

The error type for all CSS parsing routines.

ValueParseError

Error in property value parsing