Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Comments in selectors throwing errors #1208

@xzyfer

Description

@xzyfer

Originally mentioned in #1122 (comment)

foo {
  &.bar, /* */
  &.baz {
    color: red;
  }
}

Ruby Sass

foo.bar, foo.baz {
  color: red; }

Libsass

Error: invalid selector after ,
        on line 3 of test.scss
>>   &.bar, /* */
   --------^

Removing the &, or the nesting resolves the issue. AFAIK this is the minimal test case.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions