Class CSSRule
java.lang.Object
org.openqa.selenium.devtools.v150.css.model.CSSRule
CSS rule representation.
-
Constructor Summary
ConstructorsConstructorDescriptionCSSRule(Optional<StyleSheetId> styleSheetId, SelectorList selectorList, Optional<List<String>> nestingSelectors, StyleSheetOrigin origin, CSSStyle style, Optional<BackendNodeId> originTreeScopeNodeId, Optional<List<CSSMedia>> media, Optional<List<CSSContainerQuery>> containerQueries, Optional<List<CSSSupports>> supports, Optional<List<CSSLayer>> layers, Optional<List<CSSScope>> scopes, Optional<List<CSSRuleType>> ruleTypes, Optional<List<CSSStartingStyle>> startingStyles, Optional<List<CSSNavigation>> navigations) -
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 BackendNodeId of the DOM node that constitutes the origin tree scope of this rule.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<BackendNodeId> originTreeScopeNodeId, Optional<List<CSSMedia>> media, Optional<List<CSSContainerQuery>> containerQueries, Optional<List<CSSSupports>> supports, Optional<List<CSSLayer>> layers, Optional<List<CSSScope>> scopes, Optional<List<CSSRuleType>> ruleTypes, Optional<List<CSSStartingStyle>> startingStyles, Optional<List<CSSNavigation>> navigations)
-
-
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
-
getOrigin
Parent stylesheet's origin. -
getStyle
Associated style declaration. -
getOriginTreeScopeNodeId
The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule. -
getMedia
-
getContainerQueries
Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards. -
getSupports
-
getLayers
-
getScopes
-
getRuleTypes
The array keeps the types of ancestor CSSRules from the innermost going outwards. -
getStartingStyles
-