Class CSSRule
java.lang.Object
org.openqa.selenium.devtools.v119.css.model.CSSRule
CSS rule representation.
-
Constructor Summary
ConstructorsConstructorDescriptionCSSRule
(Optional<StyleSheetId> styleSheetId, SelectorList selectorList, Optional<List<String>> nestingSelectors, StyleSheetOrigin origin, CSSStyle style, Optional<List<CSSMedia>> media, Optional<List<CSSContainerQuery>> containerQueries, Optional<List<CSSSupports>> supports, Optional<List<CSSLayer>> layers, Optional<List<CSSScope>> scopes, Optional<List<CSSRuleType>> ruleTypes) -
Method Summary
Modifier and TypeMethodDescriptionContainer query list array (for rules involving container queries).Cascade layer array.getMedia()
Media list array (for rules involving media queries).Array of selectors from ancestor style rules, sorted by distance from the current rule.Parent stylesheet's origin.The array keeps the types of ancestor CSSRules from the innermost going outwards.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, Optional<List<String>> nestingSelectors, StyleSheetOrigin origin, CSSStyle style, Optional<List<CSSMedia>> media, Optional<List<CSSContainerQuery>> containerQueries, Optional<List<CSSSupports>> supports, Optional<List<CSSLayer>> layers, Optional<List<CSSScope>> scopes, Optional<List<CSSRuleType>> ruleTypes)
-
-
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. -
getNestingSelectors
Array of selectors from ancestor style rules, sorted by distance from the current rule. -
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. -
getContainerQueries
Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards. -
getSupports
-
getLayers
Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards. -
getScopes
-
getRuleTypes
The array keeps the types of ancestor CSSRules from the innermost going outwards.
-