#4207·sass

Sass incorrectly parses adjacent compound selectors as descendant combinators

Author: nex3Created Apr 1, 2026Updated May 22, 2026
LabelsbugCSS compatibilityrequires deprecation

Currently, if two compound selectors are directly next to one another, Sass will parse them as though they're separated by a descendant combinator. This is contrary to the text of the selector syntax specification which requires that compound selectors be separated by a combinator, and doesn't match the behavior of browsers.

For example, Sass currently parses [a]b and [a] b the same way. The former should be a syntax error instead.


Deprecation

Removal