Opened 11 years ago
Closed 11 years ago
#11607 closed defect (fixed)
font is not valid in newer firefox versions
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.6 |
Component: | rendering | Version: | 1.0-stable |
Severity: | normal | Keywords: | firefox css |
Cc: | Jun Omae | Branch: | |
Release Notes: |
Avoid respect to system font settings for controls on Firefox. |
||
API Changes: | |||
Internal Changes: |
Description
in
htdocs/common/css/trac.css
there is a section
/* Forms */ input, textarea, select { margin: 2px }
which is missing a ;
and there should be added a font-size definition, otherwise the font has the system-default fontsize, which can be really huge at a retina display (Hi-Resolution displays)
so It should look like
/* Forms */ input, textarea, select { margin: 2px; font-size:13px; }
Attachments (1)
Change History (7)
by , 11 years ago
Attachment: | Auswahl_0011998x1573_2014050108:53:21.png added |
---|
comment:1 by , 11 years ago
Component: | general → rendering |
---|---|
Keywords: | firefox added |
Milestone: | → undecided |
Version: | → 1.0-stable |
/* Forms */ input, textarea, select { margin: 2px }which is missing a
;
No. That is valid.
… and there should be added a font-size definition, otherwise the font has the system-default fontsize, which can be really huge at a retina display (Hi-Resolution displays)
Are you using which version of Firefox and Operating system?
Firefox respects font-family in system font settings for form widgets all along. However, I don't know whether font-size is respected or not.
refs http://mxr.mozilla.org/mozilla-central/source/layout/style/forms.css.
comment:2 by , 11 years ago
I use Linux Ubuntu 14.04 with a global zoom factor of 2.0.
If i reset the zoom factor to default 1.0 everything looks fine, but only because then everything is really small.
If I set it to 2.0 only the input fields get resized by factor 2.0 but all other text in Trac isn't.
My suggested solution with font-size:13px;
definitely defined fixes this issue for zoom factor 2 and has no negative effect on a normal zoom.
It seems like font: 13px Helvetia,...
isn't supported anymore since Firefox 24 or so
comment:3 by , 11 years ago
Cc: | added |
---|
Thanks for feedback.
It would be good to apply the following. I don't think that font-size
is needed for textarea
because its initial value is medium
on Firefox.
-
trac/htdocs/css/trac.css
68 68 69 69 /* Forms */ 70 70 input, textarea, select { margin: 2px } 71 input, select, button { font-family: inherit; font-size: 100% } 71 72 /* Avoid to inherit white-space of its parent element for IE 11, #11376 */ 72 73 textarea { white-space: pre-wrap } 73 74 input, select { vertical-align: middle }
comment:4 by , 11 years ago
yes confirmed, you are right: font-size:100% seems to work fine as well, and textareas are not affected.
comment:5 by , 11 years ago
Keywords: | css added |
---|---|
Milestone: | undecided → 0.12.6 |
Owner: | set to |
Status: | new → assigned |
Thanks. I also confirmed on fresh install of Ubuntu 14.04. Firefox on Windows 7 doesn't have the issue.
I'll apply the changes to 0.12-stable, 1.0-stable and trunk later.
Screenshot on a high resolution display