UNPKG

postcss-logical-polyfill

Version:

A PostCSS plugin that provides physical property polyfills for CSS logical properties with intelligent direction-aware selector handling, block-direction optimization, and extended logical property support via shim system

31 lines (30 loc) 907 B
import { Rule } from 'postcss'; /** * Check if a rule contains logical properties */ export declare function hasLogicalProperties(rule: Rule): boolean; /** * Apply logical property transformation to a rule */ export declare function applyLogicalTransformation(rule: Rule, direction: 'ltr' | 'rtl'): Promise<Rule | null>; /** * Helper function to compare if two rules have identical declarations */ export declare function rulesAreIdentical(rule1: Rule, rule2: Rule): boolean; /** * Analyze property differences between LTR and RTL rules */ export declare function analyzePropertyDifferences(ltrRule: Rule, rtlRule: Rule): { commonProps: Map<string, { value: string; important: boolean; }>; ltrOnlyProps: Map<string, { value: string; important: boolean; }>; rtlOnlyProps: Map<string, { value: string; important: boolean; }>; };