Class CSSRule
java.lang.Object
org.openqa.selenium.devtools.v85.css.model.CSSRule
CSS rule representation.
-
Constructor Summary
ConstructorsConstructorDescriptionCSSRule
(Optional<StyleSheetId> styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, Optional<List<CSSMedia>> media) -
Method Summary
Modifier and TypeMethodDescriptiongetMedia()
Media list array (for rules involving media queries).Parent stylesheet's origin.Rule selector data.getStyle()
Associated style declaration.The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
-
Constructor Details
-
CSSRule
public CSSRule(Optional<StyleSheetId> styleSheetId, SelectorList selectorList, StyleSheetOrigin origin, CSSStyle style, Optional<List<CSSMedia>> media)
-
-
Method Details
-
getStyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. -
getSelectorList
Rule selector data. -
getOrigin
Parent stylesheet's origin. -
getStyle
Associated style declaration. -
getMedia
Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
-