Class BrowserPrefixRule

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

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

A rule could be matched on property name or value alone, or both property name and value. If the value is a function, then the function names must match.

Each rule, if matched, provides a set of placeholder expansion nodes - which will be cloned and swapped into the tree, as part of AutoExpandBrowserPrefix pass.

  • Method Details

    • getMatchPropertyName

      @Nullable public String getMatchPropertyName()
    • getMatchPropertyValue

      @Nullable public String getMatchPropertyValue()
    • isFunction

      public boolean isFunction()
    • getExpansionNodes

      public List<CssDeclarationNode> getExpansionNodes()
      Returns:
      A list of expansion nodes that contain a property names, and may contain a value. These nodes should be used when replacing declarations by matching property name.