Class AbbreviatePositionalValues

java.lang.Object
com.google.common.css.compiler.ast.DefaultTreeVisitor
com.google.common.css.compiler.passes.AbbreviatePositionalValues
All Implemented Interfaces:
AtRuleHandler, CssCompilerPass, CssTreeVisitor

public class AbbreviatePositionalValues extends DefaultTreeVisitor implements CssCompilerPass
Check shorthand rule declarations that define positional values, such as padding and margin, and eliminate duplicate values if possible. For example, "margin: 1px 2px 3px 2px" will be shortened to just "margin: 1px 2px 3px", since the final 2px is redundant.

Note: At present, this pass applies to border-width, but not border.

See Also: