UNPKG

computed-styles-regression-test

Version:

DOM & CSSOM based regression testing utility

50 lines 1.2 kB
export interface CSSOMStyleValue { property: string; value: string; priority?: string; } export interface CSSOMElementNode { tagName: string; selector: string; uniqueSelector: string; computedStyles: CSSOMStyleValue[]; children: CSSOMElementNode[]; attributes: Record<string, string>; textContent?: string; } export interface CSSOMSnapshot { timestamp: number; url: string; viewport: { width: number; height: number; }; trees: CSSOMElementNode[]; } export interface SnapshotOptions { selector: string; includeChildren?: boolean; computedStyleProperties?: string[]; viewport?: { width: number; height: number; }; } export interface ComparisonResult { isEqual: boolean; differences: ComparisonDifference[]; } export interface ComparisonDifference { type: 'structure' | 'style'; path: string; expected: unknown; actual: unknown; description: string; } export interface ComparisonOptions { ignoreClassNames?: boolean; ignoreInlineStyles?: boolean; strictStructureComparison?: boolean; styleProperties?: string[]; } //# sourceMappingURL=types.d.ts.map