css4j / css4j

CSS parser with Event and Object Model APIs, a DOM wrapper and a CSS-aware DOM implementation. Written in the Java™ language.

Home Page:https://css4j.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customizable minified serialization of computed styles

carlosame opened this issue · comments

Currently, DeclarationFormattingContext allows to customize the normal serialization of computed styles, given by computedStyle.getCssText(). But it would be useful to be able to customize computedStyle.getMinifiedCssText() as well.

Add a writeMinifiedValue() method to DeclarationFormattingContext.

With the patch that was just committed, not all minified shorthands are calling the new writeMinifiedValue() but it should be enough for most use cases. Closing.