Class CSSRule


  • public class CSSRule
    extends java.lang.Object
    CSS rule representation.
    • Method Detail

      • getStyleSheetId

        public java.util.Optional<StyleSheetId> getStyleSheetId()
        The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
      • getSelectorList

        public SelectorList getSelectorList()
        Rule selector data.
      • getStyle

        public CSSStyle getStyle()
        Associated style declaration.
      • getMedia

        public java.util.Optional<java.util.List<CSSMedia>> getMedia()
        Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
      • getContainerQueries

        @Beta
        public java.util.Optional<java.util.List<CSSContainerQuery>> getContainerQueries()
        Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.
      • getSupports

        @Beta
        public java.util.Optional<java.util.List<CSSSupports>> getSupports()
      • getLayers

        @Beta
        public java.util.Optional<java.util.List<CSSLayer>> getLayers()
        Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.
      • getScopes

        @Beta
        public java.util.Optional<java.util.List<CSSScope>> getScopes()