Interface TryColorOptions

interface TryColorOptions {
    cssProperty?: string;
    element?: Element;
    errorMeta?: Record<any, any>;
    meta?: ParseMeta;
    parseMeta?: ParseMeta;
}

Hierarchy (view full)

Properties

cssProperty?: string

CSS property to use for DOM resolution Defaults to "background-color". Why not use color as the default? Because then currentColor would resolve to the parent color.

element?: Element

DOM element to use for CSS resolution

errorMeta?: Record<any, any>

Object to hold error metadata if resolution fails

meta?: ParseMeta

Object to hold information about the parsing (format, types, etc.)

parseMeta?: ParseMeta

Alias for meta