Class BrowserPrefixGenerator


  • public final class BrowserPrefixGenerator
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BACKGROUND_IMAGE  
      static java.lang.String DISPLAY  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.common.collect.ImmutableList<BrowserPrefixRule> getExpansionRules()
      Returns the rules for automatic expansion of mixins.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrowserPrefixGenerator

        public BrowserPrefixGenerator()
    • Method Detail

      • getExpansionRules

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