@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
36 lines (35 loc) • 1.9 kB
TypeScript
import type { BackgroundAttachmentValue, BackgroundClipValue, BackgroundColorValue, BackgroundOriginValue, BackgroundRepeatValue, BackgroundSizeValue, BackgroundPositionValue, BackgroundImageValue, BackgroundValue } from '../types';
export declare namespace BackgroundAttachment {
function parse(value: string): BackgroundAttachmentValue | null;
function toCSSValue(parsed: BackgroundAttachmentValue | null): string | null;
}
export declare namespace BackgroundClip {
function parse(value: string): BackgroundClipValue | null;
function toCSSValue(parsed: BackgroundClipValue | null): string | null;
}
export declare namespace BackgroundColor {
function parse(value: string): BackgroundColorValue | null;
function toCSSValue(parsed: BackgroundColorValue | null): string | null;
}
export declare namespace BackgroundOrigin {
function parse(value: string): BackgroundOriginValue | null;
function toCSSValue(parsed: BackgroundOriginValue | null): string | null;
}
export declare namespace BackgroundRepeat {
function parse(value: string): BackgroundRepeatValue | null;
function toCSSValue(parsed: BackgroundRepeatValue | null): string | null;
}
export declare namespace BackgroundSize {
function parse(value: string): BackgroundSizeValue | null;
function toCSSValue(parsed: BackgroundSizeValue | null): string | null;
}
export declare namespace BackgroundPosition {
function parse(value: string): BackgroundPositionValue | null;
function toCSSValue(parsed: BackgroundPositionValue | null): string | null;
}
export declare namespace BackgroundImage {
function parse(value: string): BackgroundImageValue | null;
function toCSSValue(parsed: BackgroundImageValue | null): string | null;
}
export declare function parse(value: string): BackgroundValue | null;
export declare function toCSSValue(parsed: BackgroundValue | null): string | null;