Skip to content

[css-mixins-1] Behavior for multiple @result rules #13522

@andruud

Description

@andruud

This was brought up in #13138, but never fully addressed:

@mixin --m() {
  @result {
    div { color: green; }
  }
  @result {
    span { color: blue; }
  }
}

What is emitted from the above mixin? We seem to have two choices:

  1. The last seen @result wins wholesale; only span{color:blue} is emitted.
    • It is consistent with how @thing foo generally overwrites a previous @thing foo in CSS.
    • It is consistent with how result works in @function.
  2. All @result rules "accumulate" to form the output; div{color:green};span{color:blue} is emitted.
    • It is consistent with what @mirisuzanne expects.
    • TODO: Insert argument for this position.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions