Expand description
Parsing for CSS colors.
Enums§
- Represents a channel keyword inside a color.
- Either an angle or a number.
- Either a percentage or a number.
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.
- Parses hsl syntax.
- Parses hwb syntax.
- Parse a
<number>
value. - Parse an
<number>
or<angle>
value. - Parse a
<number>
or<percentage>
value. - Parse the relative color syntax “from” syntax
from <color>
. - Parse a
<percentage>
value. - Returns true if the relative color syntax pref is enabled.