Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemap points to topmost selector of nested selectors/rules #2033

Closed
enterframe opened this issue May 26, 2014 · 3 comments
Closed

Sourcemap points to topmost selector of nested selectors/rules #2033

enterframe opened this issue May 26, 2014 · 3 comments

Comments

@enterframe
Copy link

When I try to to access the less-source using the chrome-debugger (&sourcemaps) by clicking a selector (.inner) in it´s inspector, it always points me to the topmost less-selector defined (.topmost):

.topmost {
  .inner {
    ...
  }
}

There´s a workaround using the &-operator like:

.topmost {
  & .inner {
    ...
  }
}

I´ll ask myself if this is a bug or an expected behaviour.

@matthew-dean
Copy link
Member

To my recollection, this is a Chrome bug. Someone may be able to find the relevant issue.

@lukeapage
Copy link
Member

Its a duplicate. Chrome gets all the information but navigates to the
source of the upmost selector. I raised a chrome bug, but can't remember if
they fixed it or we came to the conclusion we needed to workaround.

@lukeapage
Copy link
Member

of #1492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants