Last Comment Bug 410959 - [BC] Table cell border widths render incorrectly at various zoom levels
: [BC] Table cell border widths render incorrectly at various zoom levels
Status: NEW
:
Product: Core
Classification: Components
Component: Layout: Tables (show other bugs)
: Trunk
: All All
: -- normal with 15 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
: 419083 514096 572093 689165 777708 986537 1046390 1140271 1227125 (view as bug list)
Depends on: 477157 895096
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-05 12:32 PST by Chris Roat
Modified: 2016-01-07 16:02 PST (History)
29 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
testcase (763 bytes, text/html)
2009-08-25 14:36 PDT, Martijn Wargers [:mwargers] (gone per 2016-05-31 :-( )
no flags Details
Screenshot showing 3 zoom levels (30.40 KB, image/png)
2009-09-06 15:15 PDT, Ahmed Elmahdawy
no flags Details

Description Chris Roat 2008-01-05 12:32:46 PST
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2

When rendering tables, the width of the cell borders looks OK at the default zoom, but there seems to be an aliasing issue at other zoom levels.  Zooming in/out can cause borders that should be the same width appear different widths... including having thin borders disappear completely.


Reproducible: Always

Steps to Reproduce:
1. Save the xhtml below as a file.
2. Fire up FF beta2 (found on both OSX/Leopard and Ubuntu) and open the file.
3. Zoom in or out.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Firefox 3 Beta 2 Render Problem When Zooming</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
body {
  background: #FFFFFF;
}
table {
  background: #00CCFF;
  border-collapse: collapse;
}
table td {
  border-color: #666600;
  border-style: solid;
  border-width: 0 0 0.5 0;
}
</style>
</head>
<body>
<table>
<tr><td>The quick brown fox</td></tr>
<tr><td>The quick brown fox</td></tr>
<tr><td>The quick brown fox</td></tr>
</table>
</body>
</html>

Actual Results:  
The yellow borders appear different widths at various zoom levels - some borders disappearing from view when zooming out.

Expected Results:  
Borders should appear the same width at each zoom level.
Comment 1 Earl Marwil 2008-11-16 20:38:01 PST
In Firefox 3 (3.0.4 on a Mac and 3.0.2 on Linux), for a table with 1px border similar to your example, I observed that when zooming out various segments of the borders both between cells and table border itself would disappear. The same table rendered correctly in Firefox 2. As I researched this problem I ran across a posting on another site that mentioned there is an option to "Zoom Text Only". 

When this feature is enabled, the table is rendered correctly. Try it for your example. I believe this is what you are looking for.

I would recommend that Firefox enable this option by default and let the user choose to zoom everything by disabling the option. This would provide consistent behavior between FF2 and FF3.
Comment 2 Martijn Wargers [:mwargers] (gone per 2016-05-31 :-( ) 2009-08-25 14:36:22 PDT
Created attachment 396547 [details]
testcase
Comment 3 Martijn Wargers [:mwargers] (gone per 2016-05-31 :-( ) 2009-08-25 14:37:27 PDT
Might be related to bug 477157.
Comment 4 [retired] 2009-09-06 15:02:56 PDT
*** Bug 514096 has been marked as a duplicate of this bug. ***
Comment 5 Ahmed Elmahdawy 2009-09-06 15:15:49 PDT
Created attachment 398979 [details]
Screenshot showing 3 zoom levels
Comment 6 Tanner Filip [:tanner] 2009-09-06 21:40:02 PDT
I think this would be layout: tables...
Comment 7 Dan Dascalescu 2010-03-15 13:59:46 PDT
Bump. I have a number of users annoyed about this as well. Firefox 3.6 on Windows XP SP3.

The bug has also been confirmed on Ubuntu 9.10 and 10.4 - https://bugs.launchpad.net/firefox/+bug/519928
Comment 8 j.j. 2010-06-15 19:15:18 PDT
*** Bug 572093 has been marked as a duplicate of this bug. ***
Comment 9 Jason 2011-09-27 14:05:42 PDT
*** Bug 689165 has been marked as a duplicate of this bug. ***
Comment 10 Jason 2011-09-27 14:08:24 PDT
Still broken with FF 7.
Comment 11 Mark 2011-11-21 02:53:21 PST
Bug still in FF 8 : Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0

For example use http://www.somacon.com/p141.php, leave all defaults except set border-collapse to "collapse", then press ctrl-minus, note that the bottom table border disappears. Press ctrl-minus again, now the top and right borders are missing.
Comment 12 j.j. 2012-07-26 13:44:20 PDT
*** Bug 777708 has been marked as a duplicate of this bug. ***
Comment 13 Roman 2014-03-13 06:58:28 PDT
Are there any known work-arounds? Zooming is more common than ever, especially now that high(ish)-DPI monitors are finally entering the PC market. Even IE11 does this correctly.
Comment 14 Elbart 2014-04-12 07:24:09 PDT
2014 and this is still an issue? Wow.
I'm using the zoom-feature to fix Wikipedia's awful new font-style, and now all tables on WP have missing lines. Of course, Cr and IE don't have this issue.
Comment 15 Elbart 2014-04-14 05:12:24 PDT
Trying with the testcase of comment 2, the regression-range for disappearing lines when zooming out (smaller) is

good
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2007/10/2007-10-25-04-trunk/firefox-3.0a9pre.en-US.win32.zip

bad
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2007/10/2007-10-26-05-trunk/firefox-3.0a9pre.en-US.win32.zip 

http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-10-24-01&maxdate=2007-10-26-06&cvsroot=%2Fcvsroot

Probably
Bug 389628 - "Implement UI for full page zoom" [p=dao r=mconnor r+sr=sicking (for content/events/) a=blocking-firefox3+ for M9] 

===

And the range for disappearing lines when zooming in (bigger) is

Last good revision: a131999fa900 (2008-10-31)
First bad revision: 4f1383af8f10 (2008-11-01)
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a131999fa900&tochange=4f1383af8f10
Comment 16 Roman 2014-05-08 10:46:15 PDT
*** Bug 419083 has been marked as a duplicate of this bug. ***
Comment 17 :Gijs Kruitbosch 2014-08-05 08:15:46 PDT
*** Bug 1046390 has been marked as a duplicate of this bug. ***
Comment 18 Erfa 2015-01-09 00:49:11 PST
This appears to still be an issue. Very annoying not being able to zoom out without rendering the page incorrectly.
Comment 19 Mats Palmgren (:mats) 2015-12-09 10:40:13 PST
*** Bug 1227125 has been marked as a duplicate of this bug. ***
Comment 20 Simona B [:simonab] 2015-12-11 04:51:38 PST
*** Bug 1140271 has been marked as a duplicate of this bug. ***
Comment 21 Abe - QA 2016-01-07 16:02:59 PST
*** Bug 986537 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.