Shrinking CSS
summary
A new open-source minifier called CSS shrink parses full CSS ASTs (uses the Gonzalez parser instead of regex hacks) and actually rewrites values: color representations pick the smallest form, zeros and units are stripped, seconds replace milliseconds, shorthands and adjacent selectors merge, duplicates and unused IE hacks are removed, and browser-specific CSS (BSCSS) drops unsupported properties so old IE can lose roughly half of Bootstrap. Tests run by pixel-compare across headless engines using PhantomJS pixel diff and smaller Firefox/IE runners to catch regressions.
AI-written summary · about
chapters (6)
- 0:00The CSS challenge
- 2:59Parsing and minification
- 7:07Minification techniques
- 11:25Structural optimizations
- 15:11Validation and tooling
- 20:24Future of CSS architecture








