Skip to content

Unclear default behavior for Sass parent selectors #214

@ByteB4rb1e

Description

@ByteB4rb1e

Hi.

.name- {
    &suffix {
        content: '';
    }
}

triggers rule selector-class-pattern, though this is valid for adding suffixes (https://sass-lang.com/documentation/style-rules/parent-selector/) in Sass.

In my opinion, it is insufficient to rely on a rule for evaluating a selector before it has been resolved in nested SCSS structures, so I would assume it to be a default not to have such a rule for Sass SCSS evaluation? I advocate for using well-known rule sets, instead of custom adaptions, that's why I'm bringing this up.

Is anybody able to clarify this for me?

Kind regards

Tiara

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions