Closed
Bug 1916781
Opened 1 year ago
Closed 1 year ago
Canvas font size in `px` should not be affected by text zoom
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1909625
People
(Reporter: timdream, Unassigned)
References
Details
Attachments
(1 file)
|
1.06 KB,
text/html
|
Details |
Canvas font size in px should not be affected by text zoom
STR:
- Load the test case
- Turn on text zoom and zoom in the text
Expected:
- All text in layout gets bigger including the one with font size set to
16px. - Text size on canvas remain unchanged.
Actual:
- All font sizes, including the one on canvas, is inflated.
Note:
- One may be tempted to argue that the current behavior provides consistency between layout and canvas, but custom layout on canvas is much more limited; As demonstrated here, canvas layout cannot expand the bounding boxes and flow automatically like web layout. Developer will not be able to accommodate canvas font size changes in all cases.
- Chrome does not change font sizes specified in
px, in web layout nor canvas. macOS Safari does change font sizes specified inpxbut in web layout only, not on canvas. Firefox is the outlier here which web developers will likely ignore/unaware. This creates web compact issue.
Comment 2•1 year ago
|
||
I'll fix this along with bug 1909625.
You need to log in
before you can comment on or make changes to this bug.
Description
•