Normalizer
NAME
CSS::Minifier::Normalizer β declaration normalization and dedup
DESCRIPTION
Walks the document tree and deduplicates declarations (last-wins).
Methods
normalize(Document $doc)β walks the document tree and normalizes all declarations in place!assemble-background(%by-prop)β assembles background shorthand from present longhands; handles both single and multi-layer (comma-separated) backgrounds. Includes background-size via position/size syntax, background-origin and background-clip as box values; defaults position to 0% 0% when size present without position. Multi-layer handles cycling per CSS spec when layer counts differ across longhands.!assemble-font(%by-prop)β assembles font shorthand from font-size and font-family (required) plus font-style, font-variant, font-weight (optional) and line-height (optional, consumed into size/line-height syntax if present); normalizes boldβ700, normalβ400; skips default values
AUTHOR
Sasha Abbott <[email protected]>
COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under CC0.