Merging

NAME

CSS::Minifier::Plugin::Merging — ruleset merging for the CSS minifier

DESCRIPTION

Performs two types of structural merging at level 2:

  • Same-declaration merging — adjacent rulesets with identical declarations have their selectors combined (e.g. h1{color:#F00} h2{color:#F00} → h1,h2{color:#F00}). Custom properties act as a barrier; rulesets containing them are not merged.

  • Same-selector merging — adjacent rulesets with identical selectors have their declarations merged. Custom property declarations are preserved verbatim rather than overwritten.

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.