The CSSNestedDeclarations interface of the CSS Rule API is used to group nested CSSRules.
CSSNestedDeclarations
MDN Reference