Expand description
Fairly complete css-color implementation. Relative colors, color-mix, system colors, and other such things require better calc() support and integration.
Structs
- Used to parse the components of a color.
Enums
- Either an angle or a number.
- Either a number or a percentage.
Traits
- This trait is used by the
ColorParser
to construct colors of any type.
Functions
- Parse one of the color functions: rgba(), lab(), color(), etc.
- Return the named color with the given name.
- Parse a CSS color using the specified
ColorParser
and return a new color value on success. - Parse the color() function.
- Parse the color components and alpha with the modern [color-4] syntax.
- Parses hsl syntax.
- Parses hwb syntax.
- Parse the relative color syntax “from” syntax
from <color>
. - Returns true if the relative color syntax pref is enabled.