less / less/less.js

Problem with call less extend in extend

Open
#3,590 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

Example
I have selector .abs-action-addto-product is defined in _extends.less, and it contains another extend:

My file styles.less have this
@import (reference) _extends.less;

.action.towishlist {
&:extend(.abs-action-addto-product all);
}

i have imported file _extends.less (reference import). This file contain define of .abs-action-addto-product
Inside _extends.less that .abs-action-addto-product call to another selector extend
Ex:
.abs-action-addto-product {
&:extend(.abs-action-link-button all);
}

in less 2.5.3 it's work but if i update less to 3.13.1 seem this not work anymore
Is this a known issue ?
CC: @matthew-dean @seven-phases-max

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reduced nested :extend example in the issue and compare its output under Less 2.5.3 and 3.13.1. No source file or test is named; done means determining whether the version change is a regression and capturing the expected behavior in a reproducible test or clear issue finding.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.