Class CssNormalizer
java.lang.Object
de.xima.fc.common.css.CssNormalizer
Normalizer for CSS. Different CSS strings may have the same semantic meaning, e.g.
[attr='value'] and
[attr="value"]. This class normalizes a CSS stylesheet by converting such strings to a common form.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidnormalizeStylesheet(com.helger.css.decl.CascadingStyleSheet stylesheet) Normalizes a CSS stylesheet.
-
Method Details
-
normalizeStylesheet
public static void normalizeStylesheet(com.helger.css.decl.CascadingStyleSheet stylesheet) Normalizes a CSS stylesheet. For example, attribute selectors such as[attr='value']are normalized to[attr="value"].- Parameters:
stylesheet- The stylesheet to normalize
-