Closed
Bug 440120
Opened 16 years ago
Closed 14 years ago
Width from getComputedStyle does not match offsetWidth of various elements
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: pennig, Unassigned)
Details
(Whiteboard: [CLOSEME 2010-11-01])
Attachments
(1 file)
807 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0 Obtaining the width property using getComputedStyle returns a fractional px value of various elements, which does not reflect the output of offsetWidth (an integer). This behavior differs from at least Firefox 2 on OS X, Firefox 2 & 3 on windows, and other browsers in the marketplace that support getComputedStyle. Elements this behavior applies to are those that have no explicit width set and are set to display as inline-block or are floated. Reproducible: Always Steps to Reproduce: 1. Open HTML testcase in Firefox 3 for Mac 2. Observe whether the text wraps or not. Actual Results: The text wraps because the Actual Width is larger than the offsetWidth. Expected Results: The text should not wrap, because the Actual Width resolves to an integer equal to offsetWidth HTML testcase attached.
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Updated•16 years ago
|
Version: unspecified → 3.0 Branch
Reporter | ||
Comment 2•16 years ago
|
||
Also, this issue currently manifests itself in the breadcrumb navigation of http://store.apple.com/
Is bug 430153 comment 6 relevant here?
Reporter | ||
Comment 4•16 years ago
|
||
Kai, I had considered that, but the fact that this subpixel distinction only seems to manifest itself on Firefox for Mac leads me to believe that this an issue that deserves some attention, if not a fix. Perhaps the Mac version could me made to mimic the Windows version, or vice versa.
Comment 5•14 years ago
|
||
This is a mass search for Firefox General bugs filed against version 3.0 that are UNCO and have not been changed for 200 days. Reporter, please update to Firefox 3.6.10 or alter. Firefox 3.0 is no longer supported and is no longer receiving updates. After you update, please create a fresh profile, http://support.mozilla.com/kb/managing+profiles, and test to see if your bug still exists. If you still the bug, then please post a comment with the version you tested against, and the problem. If the issue is no longer there, please set the RESOLUTION to RESOLVED, WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
Comment 6•14 years ago
|
||
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•