Class BrowserPrefixGenerator

java.lang.Object
com.google.common.css.compiler.passes.BrowserPrefixGenerator

public final class BrowserPrefixGenerator extends Object
A utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.

Currently three most common cases are handled: #1 Matching and replacing only the property name. Eg. flex-grow: VALUE; #2 Matching property name and value, replacing the value. Eg. display: flex; #3 Matching property name and value where value is a function, replacing the function name. Eg. background-image: linear-gradient(ARGS);

  • Field Details

  • Constructor Details

    • BrowserPrefixGenerator

      public BrowserPrefixGenerator()
  • Method Details

    • getExpansionRules

      public static com.google.common.collect.ImmutableList<BrowserPrefixRule> getExpansionRules()
      Returns the rules for automatic expansion of mixins.