Class CSSStyle
- java.lang.Object
-
- org.openqa.selenium.devtools.css.model.CSSStyle
-
public class CSSStyle extends java.lang.Object
CSS style representation.
-
-
Constructor Summary
Constructors Constructor Description CSSStyle(StyleSheetId styleSheetId, java.util.List<CSSProperty> cssProperties, java.util.List<ShorthandEntry> shorthandEntries, java.lang.String cssText, SourceRange range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CSSProperty>
getCssProperties()
CSS properties in the style.java.lang.String
getCssText()
Style declaration text (if available).SourceRange
getRange()
Style declaration range in the enclosing stylesheet (if available).java.util.List<ShorthandEntry>
getShorthandEntries()
Computed values for all shorthands found in the style.StyleSheetId
getStyleSheetId()
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
-
-
-
Constructor Detail
-
CSSStyle
public CSSStyle(StyleSheetId styleSheetId, java.util.List<CSSProperty> cssProperties, java.util.List<ShorthandEntry> shorthandEntries, java.lang.String cssText, SourceRange range)
-
-
Method Detail
-
getStyleSheetId
public StyleSheetId getStyleSheetId()
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
-
getCssProperties
public java.util.List<CSSProperty> getCssProperties()
CSS properties in the style.
-
getShorthandEntries
public java.util.List<ShorthandEntry> getShorthandEntries()
Computed values for all shorthands found in the style.
-
getCssText
public java.lang.String getCssText()
Style declaration text (if available).
-
getRange
public SourceRange getRange()
Style declaration range in the enclosing stylesheet (if available).
-
-