less-docs icon indicating copy to clipboard operation
less-docs copied to clipboard

Mismatch between Expected and Actual Output in Official Documentation Example

Open xiaoyan13 opened this issue 1 year ago • 0 comments

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".

xiaoyan13 avatar Jan 30 '24 03:01 xiaoyan13