font in flat-text editor not resizable via Global Font setting

Bug #678078 reported by Jason Etheridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Low
Galen Charlton

Bug Description

Font size manipulations happen via a function called font_helper(), which adds a CSS classname to the document root, such as ALL_FONTS_LARGER, ALL_FONTS_18PT, etc.

In global.css, we have lines like this that look for those classnames:

.ALL_FONTS_LARGER * { font-size-adjust: 1.1 !important; }

.ALL_FONTS_18PT * { font-size: 18pt !important; }

These work with XUL textboxes, but the flat text editor is using an xhtml.textarea. I tried styling this with different selectors such as xhtml.textarea and *.textarea, to no avail, even after adding an xhtml @namespace directive to the CSS.

Revision history for this message
Jason Etheridge (phasefx) wrote :

Tried xhtml:textarea as well with no love.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Is this an Evergreen bug or a XUL issue?

Revision history for this message
Jason Etheridge (phasefx) wrote : Re: [Bug 678078] Re: font in flat-text editor not resizable via Global Font setting

On Wed, Dec 8, 2010 at 4:39 PM, Jason Stephenson
<email address hidden> wrote:
> Is this an Evergreen bug or a XUL issue?

Not XUL, but maybe Mozilla. Evergreen insomuch as there are a lot of
elements that the font-helper isn't affecting, but the flat-text MARC
editor is one a library commented on. The question we could ask the
Mozilla community (or google for it, etc.) is: should xhtml:textarea
elements be affected by font-controlling CSS, and if so, how? We can
implement a fix if the answer is yes.

Revision history for this message
Galen Charlton (gmc) wrote :

I've created a patch (http://git.esilibrary.com/?p=evergreen-equinox.git;a=commitdiff;h=b7175e423861bf910934cbce7ccb123fea2b1c37 and attached to this bug) that appears to solve the problem. Because of the wide-ranging effect it could have, I would appreciate further testing.

Revision history for this message
Galen Charlton (gmc) wrote :

Proposed fix.

Changed in evergreen:
status: New → Triaged
assignee: nobody → Galen Charlton (gmc)
Galen Charlton (gmc)
Changed in evergreen:
status: Triaged → In Progress
Galen Charlton (gmc)
Changed in evergreen:
status: In Progress → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.