Unit pt missing from Fonts tab in developer tools
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: ambrose.li, Assigned: mei, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
- Open Developer Tools
- Go to the Fonts tab
- Try to change unit to pt
Actual results:
pt is not in the dropdown
Expected results:
pt should be in the dropdown. In fact, any unit that’s appeared in any CSS actually used by the page (e.g., mm, if mm appears in any loaded CSS file) should be in the dropdown.
I do print-based layouts and I use only pt (px is meaningless for print). The current output for the Fonts tab is not useful for people who try to work on / debug layouts that target print.
Comment 1•7 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•7 months ago
|
||
the list of units is defined in https://searchfox.org/mozilla-release/rev/d8f30fc43d8a411937b53bb95eb9555356e9bcb8/devtools/client/inspector/fonts/components/FontSize.js#81
unitOptions: ["em", "rem", "%", "px", "vh", "vw"],
It shouldn't be too hard to add a pt
item there.
Updated•7 months ago
|
Updated•7 months ago
|
Assignee | ||
Comment 3•7 months ago
|
||
Hi all, I would like to work on this bug
Comment 4•7 months ago
|
||
Helo Meike, the bug is now yours :)
If you didn't already, going over https://firefox-source-docs.mozilla.org/devtools/index.html might help you to write a patch and submit it for review.
Let us know if you have any question on this!
Assignee | ||
Comment 5•7 months ago
|
||
Description
•