Class CssNormalizer

java.lang.Object
de.xima.fc.common.css.CssNormalizer

public final class CssNormalizer extends Object
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 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