Wrong line-numbers on source-map selectors - chrome reports position of first element, not last element
See original GitHub issueThe 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;
}
}
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:
- Created 10 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.