Add button in UI to trigger 'pretty print'
Categories
(DevTools :: Style Editor, enhancement, P3)
Tracking
(relnote-firefox 120+, firefox120 fixed)
People
(Reporter: googol.morons, Assigned: nchevobbe)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Steps to reproduce:
utilize e.g. https://www.avdweb.nl/templates/yootheme/css/theme.9.css in simple html page(see attached).
in 'Dev tools' open Style Editor and 'theme.9.css' in it
Actual results:
the stylesheet is minified and there are no controls to enforce 'pretty print' on it
(there are 2 line feedsin the css file. wiping them out gives pretty-printed stylesheet in Style Editor)
Expected results:
there should be an UI control(button/menu entry) allowing to force formatting(pretty print) over (script/)stylesheet - for the case FF improperly detects 'minified' state.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Style Editor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Updated•8 months ago
|
Assignee | ||
Comment 2•7 months ago
|
||
This adds a similar button to the one we have in the Debugger that users can
click on to pretty print the stylesheet.
We disable the button when the opened file is an original file, as we don't
support pretty printing non CSS files.
This also removes the automatic pretty print that was happening on minified files.
The current test for (automatic) pretty printing is updated to check that the
button has the expected states and behaves as it should.
Updated•7 months ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8bb28110eba Add pretty print button in StyleEditor. r=devtools-reviewers,fluent-reviewers,ochameau.
Comment 4•7 months ago
|
||
bugherder |
Updated•6 months ago
|
Description
•