Expand description
Common values used in CSS.
Re-exports§
pub use crate::servo::url::CssUrl;
Modules§
- Animated values.
- Computed values.
- Machinery to compute distances between animatable values.
- Generic types that share their serialization implementations for both specified and computed values.
- Resolved values. These are almost always computed values, but in some cases there are used values.
- Specified values.
Structs§
- A CSS string stored as an
Atom
. - A string that is either shared (heap-allocated and reference-counted) or borrowed.
- https://www.w3.org/TR/css-values-4/#dashed-idents This is simply an Atom, but will only parse if the identifier starts with “–”.
- A generic CSS
<ident>
stored as anAtom
. - The
. - A CSS parser that borrows its
&str
input, yieldsToken
s, and keeps track of nested blocks and functions. - The line and column number for a given position within the input.
Enums§
- A struct representing one of two kinds of values.
- Convenience void type to disable some properties and values through types.
- One of the pieces the CSS input is broken into.
Functions§
- Normalizes a float value to zero after a set of operations that might turn it into NaN.
- Serialize an identifier which is represented as an atom.
- Serialize a name which is represented as an Atom.
- Write a CSS identifier, escaping characters as necessary.
- Write a CSS name, like a custom property name.
- Serialize a value into normalized (no NaN/inf serialization) percentage.
- Serialize a number with calc, and NaN/infinity handling (if enabled)
- Serialize a value into percentage.
- Serialize a specified dimension with unit, calc, and NaN/infinity handling (if enabled)
Type Aliases§
- A generic CSS
<ident>
stored as anAtom
, for the default atom set. - A CSS float value.
- A CSS integer value.