Closed
Bug 1459898
Opened 7 years ago
Closed 7 years ago
Font editor: implement conversion between unit types
Categories
(DevTools :: Inspector, enhancement, P3)
DevTools
Inspector
Tracking
(firefox63 fixed)
RESOLVED
FIXED
Firefox 63
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | fixed |
People
(Reporter: rcaliman, Assigned: rcaliman)
References
Details
Attachments
(2 files)
Allow the user to toggle between unit types in font property inputs and have the values adapt proportionally to the new unit.
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
| Assignee | ||
Updated•7 years ago
|
Assignee: rcaliman → nobody
Status: ASSIGNED → NEW
Updated•7 years ago
|
Product: Firefox → DevTools
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8990737 [details]
Bug 1459898 - (Part 1) Convert between unit types for font-size in font editor.
https://reviewboard.mozilla.org/r/255804/#review263108
::: devtools/client/inspector/fonts/fonts.js:144
(Diff revision 3)
> /**
> + * Convert a value for font-size between two CSS unit types.
> + * Conversion is done via pixels. If neither of the two given unit types is "px",
> + * recursively get the value in pixels, then convert that result to the desired unit.
> + *
> + * @param {Number} value
I think we are missing an extra space after the @param to get it to align with the @return that we have done in this file.
::: devtools/client/inspector/fonts/fonts.js:153
(Diff revision 3)
> + * @param {String} toUnit
> + * CSS unit to convert to.
> + * @return {Number}
> + * Converted numeric value.
> + */
> + async convert(value, fromUnit, toUnit) {
s/convert/convertUnits
Attachment #8990737 -
Flags: review?(gl) → review+
Comment 8•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8990769 [details]
Bug 1459898 - (Part 2) Add test for font-size unit conversion.
https://reviewboard.mozilla.org/r/255820/#review263110
::: devtools/client/inspector/fonts/test/head.js:224
(Diff revision 3)
> +}
> +
> +/**
> + * Wait for a predicate to return a result.
> + *
> + * @param {Function} condition
Add an extra space after @param for the proper alignment
Attachment #8990769 -
Flags: review?(gl) → review+
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 12•7 years ago
|
||
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6409658af22
(Part 1) Convert between unit types for font-size in font editor. r=gl
https://hg.mozilla.org/integration/autoland/rev/bbbbc8a982fe
(Part 2) Add test for font-size unit conversion. r=gl
Comment 13•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d6409658af22
https://hg.mozilla.org/mozilla-central/rev/bbbbc8a982fe
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Updated•4 years ago
|
Component: Inspector: Fonts → Inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•