CSS Nesting

GPTKB entity

Statements (22)
Predicate Object
gptkbp:instanceOf CSS Feature
gptkbp:alternativeTo Sass nesting
gptkbp:enables nesting of CSS selectors within other selectors
gptkbp:hasSyntax .parent { .child { color: red; } }
https://www.w3.org/2000/01/rdf-schema#label CSS Nesting
gptkbp:improves readability of CSS
gptkbp:introducedIn gptkb:CSS_2023
gptkbp:partOf gptkb:CSS
gptkbp:reduces repetition in CSS code
gptkbp:relatedTo gptkb:Sass
gptkb:CSS_Preprocessors
gptkb:PostCSS
Less
gptkbp:requires selector list to start with & or a valid selector
gptkbp:standardizedBy gptkb:W3C
gptkbp:status stable in major browsers as of 2024
gptkbp:supportedBy gptkb:Edge
gptkb:Safari
gptkb:Firefox
gptkb:Chrome
gptkbp:bfsParent gptkb:CSS_Working_Group
gptkbp:bfsLayer 4