Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRulesBySelector ¶
FilterRulesBySelector filters CSS rules to those whose selector matches the pattern. The pattern is matched case-insensitively against the selector text. Supports simple substring matching and basic patterns.
func Format ¶
Format formats CSS with proper indentation for readability. Uses 2-space indentation and adds line breaks between rules.
func FormatComputedStyles ¶
FormatComputedStyles formats computed styles as CSS properties. Input: map of property names to values Output: formatted CSS properties (one per line)
func FormatComputedStylesMulti ¶
FormatComputedStylesMulti formats multiple computed styles with -- separators. Input: slice of maps (one per element) Output: formatted CSS properties with -- separators between elements