Open
Bug 1658518
Opened 6 years ago
Updated 4 years ago
Incorrect line numbers in the Media Queries sidebar for prettified files
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: regspam, Unassigned)
References
Details
Attachments
(1 file)
|
152.36 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; rv:79.0) Gecko/20100101 Firefox/79.0
Steps to reproduce:
- Create a new Firefox profile
- Navigate to https://ladle.ru/
- Open Style Editor (Shift+F7)
- Find "main.min.css" in the Style Sheet pane (it should be the 4th from top and contain 2161 rules), click on it
- As "main.min.css" has @media rules, the Media Queries sidebar is opened along with the Editor pane
- Notice that for all the queries line numbers are displayed incorrectly, specifically:
entries 1, 2: line 1
entries 3, 4: line 10
all the rest: line 18.
A picture illustrating the issue is attached.
Comment 1•5 years ago
|
||
The severity field is not set for this bug.
:gl, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(gl)
Updated•5 years ago
|
Flags: needinfo?(gl)
Comment 2•5 years ago
|
||
Looks like we display the line number in the original file, while we are displaying a prettified version of the file. Note that if you perform any edit in the file, the line numbers will be updated and correct.
Clicking on the media rule still jumps to the correct location, so this doesn't prevent from using the media bar, but it's inconvenient.
Severity: -- → S3
Priority: -- → P3
Summary: Incorrect line numbers in the Media Queries sidebar → Incorrect line numbers in the Media Queries sidebar for prettified files
You need to log in
before you can comment on or make changes to this bug.
Description
•