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
22 lines (21 loc) • 751 B
TypeScript
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, string>;
ltrOnlyProps: Map<string, string>;
rtlOnlyProps: Map<string, string>;
};