Skip to content

Text on nesting concatenation is not immediately clear #44186

@kingma-sbw

Description

@kingma-sbw

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Nesting/Using

What specific section or headline is this issue about?

Concatenation (is not possible)

What information was incorrect, unhelpful, or incomplete?

It suggest that concatenation is not possible. Both the title and description could be improved.

What did you expect to see?

Title

Better title: "Concatenation does not work as intended"

Description

  • Sample in Sass with the resulting effect, followed by a
  • Sample in nest CSS with the resulting browser interpretation

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

Possibly the sample could be made less conveluted when writing:

/* the follwoing Sass rule... */
.component {
  &__child-element {
  }
}

/* ... will be translated to the following CSS */
.component__child-element {
}

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:CSSCascading Style Sheets docsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions