--- factorcss/FactorCSS.hs 2004/12/27 19:11:07 62 +++ factorcss/FactorCSS.hs 2004/12/27 19:45:02 63 @@ -1,4 +1,19 @@ --- Factor a CSS stylesheet +-- +-- This file is part of FactorCSS +-- Licensed under the MIT License, +-- http://www.opensource.org/licenses/mit-license +-- Copyright 2004 James Bursa +-- + +-- Factor a CSS stylesheet. +-- +-- This tool takes a CSS stylesheet on input and produces an almost equivalent +-- stylesheet on output, but with rulesets split, combined, and reordered to +-- "factor out" common declarations. This helps reveal shared components. The +-- resulting stylesheet may also be smaller. +-- +-- The only known case where the output is not equivalent to the input is when +-- the stylesheet depends on the order of rules (see CSS 2.1 6.4.1). import List import Tokeniser