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.

CSS::Minifier v0.0.14

CSS Minifier

Authors

  • Sasha Abbott

License

CC0-1.0

Dependencies

Test Dependencies

Provides

  • CSS::Minifier
  • CSS::Minifier::Document
  • CSS::Minifier::Normalizer
  • CSS::Minifier::Parser
  • CSS::Minifier::Pipeline
  • CSS::Minifier::Plugin
  • CSS::Minifier::Plugin::Dedup
  • CSS::Minifier::Plugin::Merging
  • CSS::Minifier::Util
  • CSS::Minifier::Writer

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.