Skip to main content

Bug Tracker

Side navigation

#5624 closed bug (invalid)

Opened December 09, 2009 05:13PM UTC

Closed October 31, 2010 06:17PM UTC

.css('font-size') incorrect when Mozilla Firefox applies minimum font size

Reported by: MrHumanish Owned by:
Priority: minor Milestone:
Component: css Version: 1.3.2
Keywords: css font size Cc:
Blocked by: Blocking:
Description

The .css('font-size') should return the font-size rendered by the browser. But on Firefox (3.0.15, Ubuntu Jaunty), when the font-size of an element is below the browser's minimum font-size, the function incorrectly returns the font-size set by the CSS, whilst the rendered element is actually bigger.

Attached file shows the difference between this function's value, the CSS given to the element, and, in order to measure the actual rendered font-size, the height as calculated by .height() This example gives the element a font-size of 5px, so the browser's minimum needs to be greater. Default on Firefox is 10px I believe.

Opera gives the correct values (default minimum is 9px), haven't found min font size options for IE / Chromium.

Attachments (1)
  • jqueryFontSizeBug.html (0.6 KB) - added by MrHumanish December 09, 2009 05:14PM UTC.

    Html file demonstrating the bug

Change History (3)

Changed June 13, 2010 07:07PM UTC by dmethvin comment:1

component: unfiledattributes

Changed June 15, 2010 02:06AM UTC by dmethvin comment:2

component: attributescss

I am not convinced this is incorrect behavior.

Changed October 31, 2010 06:17PM UTC by snover comment:3

resolution: → invalid
status: newclosed

If this is a bug, it’s a bug in Firefox, not jQuery.