Crate style_traits
source ·Expand description
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.
Re-exports§
pub use crate::specified_value_info::CssType;
pub use crate::specified_value_info::KeywordsCollectFn;
pub use crate::specified_value_info::SpecifiedValueInfo;
pub use crate::values::Comma;
pub use crate::values::CommaWithSpace;
pub use crate::values::CssWriter;
pub use crate::values::OneOrMoreSeparated;
pub use crate::values::Separator;
pub use crate::values::Space;
pub use crate::values::ToCss;
Modules§
- A thin atomically-reference-counted slice.
- Types used to access the DOM from style calculation.
- A replacement for
Box<[T]>
that cbindgen can understand. - A replacement for
Box<str>
that has a defined layout for FFI. - Value information for devtools.
- Helper types and traits for the handling of CSS values.
Structs§
- The mode to use when parsing values.
- Represents a mobile style pinch zoom factor.
Enums§
- One CSS “px” in the coordinate system of the “initial viewport”: http://www.w3.org/TR/css-device-adapt/#initial-viewport
- One hardware pixel.
- Errors that can be encountered while parsing the @property rule’s inherits descriptor.
- Errors that can be encountered while parsing the @property rule’s syntax descriptor.
- Errors that can be encountered while parsing CSS values.
- Specific errors that can be encountered while parsing property values.
Traits§
- Speculatively execute paint code in the worklet thread pool.
Type Aliases§
- The error type for all CSS parsing routines.
- Error in property value parsing