Skip to content

Mismatch between Expected and Actual Output in Official Documentation Example #618

@xiaoyan13

Description

@xiaoyan13

Here

In this code:

.some-module {
  @height: 200px;
  @width: 200px;
  text-align: left;
  line-height: @height; // 200px

  & {
    // Override original values
    @height: 100px;
    @width: auto;

    .some-module__element {
      height: @height; // 100px
      width: @width; // 200px --- not 200px, but "auto". 
    }
    // ...
  }
  // ...
}

There is a problem with the annotation, width of ".some-module__element" is "auto", which overrides original value “200px".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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