Class StyleAttributes

java.lang.Object
org.htmlunit.css.StyleAttributes
All Implemented Interfaces:
Serializable

public final class StyleAttributes extends Object implements Serializable
Contains information about the style attribute defined for different browser as well as their default values.
See Also:
  • Field Details

  • Constructor Details

    • StyleAttributes

      private StyleAttributes()
  • Method Details

    • getDefinition

      public static StyleAttributes.Definition getDefinition(String propertyName, BrowserVersion browserVersion)
      Gets the style attributes definition with the given name for the specified browser version.
      Parameters:
      propertyName - the name of the property
      browserVersion - the browser version
      Returns:
      null if no definition exists for this browser version
    • getDefinitions

      public static List<StyleAttributes.Definition> getDefinitions(BrowserVersion browserVersion)
      Gets the style attributes definitions for the specified browser version.
      Parameters:
      browserVersion - the browser version
      Returns:
      the list