Closed
Bug 1475947
Opened 6 years ago
Closed 6 years ago
Font editor: font-size unit conversion for vw/vh is broken
Categories
(DevTools :: Inspector, defect, P1)
DevTools
Inspector
Tracking
(firefox63 verified, firefox64 verified)
VERIFIED
FIXED
Firefox 63
People
(Reporter: rcaliman, Assigned: rcaliman)
References
Details
Attachments
(2 files)
Steps: - Go to https://v-fonts.com/ - Inspect the first font preview in DevTools - Switch to the Fonts panel - Change the font-size dropdown from `px` (or `em`) to `vh` or `vw` Expected: - The font-size is converted to the viewport unit and scaled proportionally Result - The unit value is changed, but the number stays the same. The value is not reflected on the page.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8992587 [details] Bug 1475947 - (Part 1) implement getOwnerGlobalDimensions() on Node actor. https://reviewboard.mozilla.org/r/257452/#review264422 ::: devtools/shared/specs/node.js:128 (Diff revision 1) > value: RetVal("string") > } > }, > + getOwnerGlobalDimensions: { > + request: {}, > + response: RetVal("json") Since the object { innerWidth, innerHeight } we're returning is a pretty simple object, we should try to define a new RetVal type instead of using "json". You can find an example here. https://searchfox.org/mozilla-central/source/devtools/shared/specs/node.js#13-18
Attachment #8992587 -
Flags: review?(gl) → review+
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8992588 [details] Bug 1475947 - (Part 2) Update font editor unit conversion to use getOwnerGlobalDimensions(). https://reviewboard.mozilla.org/r/257454/#review264424
Attachment #8992588 -
Flags: review?(gl) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by rcaliman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0faca4ace71 (Part 1) implement getOwnerGlobalDimensions() on Node actor. r=gl https://hg.mozilla.org/integration/autoland/rev/4c28d3e3db9d (Part 2) Update font editor unit conversion to use getOwnerGlobalDimensions(). r=gl
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b0faca4ace71 https://hg.mozilla.org/mozilla-central/rev/4c28d3e3db9d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Updated•6 years ago
|
QA Contact: catalin.sasca
Updated•6 years ago
|
Flags: qe-verify+
Comment 9•6 years ago
|
||
I successfully reproduced the issue on Firefox Nightly 63.0a1 (2018-07-16) under Windows 10 (x64) using the STR from Comment 0. The issue is no longer reproducible on Firefox Beta 63.0b13 and latest Firefox 64.0a1 (2018-10-09). Tests were performed on Windows 10 (x64), macOS 10.13 and Ubuntu 16.04 (x64).
Updated•3 years ago
|
Component: Inspector: Fonts → Inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•