question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong line-numbers on source-map selectors - chrome reports position of first element, not last element

See original GitHub issue

The following less would point into the line of html>body form although the definition was explicitly for input. However, this would work correctly when using the & operator, but it is a pain to change all of the less definitions like that

html>body form  {

    input {
        color: cyan !important;
    }

    & input {
        background: yellow !important;
    }
}

line bug

I think this can be extent to other operators supported in less, but never the less, either empty or any operators should be supported correctly by the source maps, since it is valid less code.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
lukeapagecommented, Feb 23, 2014

note: work-around from #1715 is to control and click on the property not the selector. note 2: chrome won’t fix it so it would have to be addressed in less, probably finding the last element index ? in a selector

0reactions
dotnetwisecommented, Jan 19, 2015

Yes, but only for not “nested rules”

If you nest anything in a big rule, then all the sourcemap lines will point to its top.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dev tools showing wrong line number of sass files
I'm using sass for my CSS and strange thing is happening to me. Sometimes, when i add new rules into a scss file,...
Read more >
get a meaningful stack trace with mocha and selenium ...
get a meaningful stack trace with mocha and selenium-webdriver js ; NoSuchElementError: no such element ; Unable to locate element ; "method":"css ...
Read more >
third_party/blink/public/devtools_protocol/browser_protocol.pdl
The native markup source for this value, e.g. a <label> element. optional AXValueNativeSourceType nativeSource. # The value, such as a node or node...
Read more >
Examine and edit CSS — Firefox Source Docs documentation
Inactive rules (not shown): if a rule is inactive (e.g., padding on a :visited pseudo-element), it is colored gray, with an info icon...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Added support for editing @-rules in the Styles sidebar of the Elements tab ... Fixed erroneous forgiving selectors to not be reported as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found