[Bug 403183] [NEW] CSS font-size and line-height set to different units -> missing text
Brian
launchpad at peyser.net
Wed Jul 22 19:26:51 UTC 2009
Public bug reported:
Binary package hint: firefox-3.0
Some pages have problems with the text rendering in Firefox 3.0.11 on
Ubuntu 9.04. The text seems to disappear, but what is actually happening
is that its layout is terribly wrong. In one case there was a huge space
between lines, in another case the text was offset from where it
belonged. See: http://www.abcc.ncifcrf.gov/ for one page that has this
problem (on that page the menu on the left is missing--it ends up at the
bottom of the page).
I think I narrowed this down to some CSS using the WebDeveloper add-in.
The offending sections on two different sites had a font-size
declaration in one unit and a line-height declaration in a different
unit. For example:
.class
{
font-size: 12pt;
line-height: 20px;
}
or one based on the above site:
.class
{
font: bold 9pt/30px Arial, Helvetica, sans-serif, Geneva, Verdana, ms sans serif;
}
Here the font-size = 9pt and the line-height = 30px. If I changed that
(using WebDeveloper) to 9px/30px or to 9pt/30pt the layout was improved.
I also had this problem in Shiretoko (firefox-3.5).
If I disable the site's CSS (View > Page Style > No Style) the problem
disappears (though of course the layout is totally wrong), but if I go
to Preferences > Content > Fonts & Colors > Advanced and uncheck "Allow
pages to choose their own fonts..." I still get the problem.
I do not think I had this problem in Windows with Firefox 3.0, and Opera
on Ubuntu does not have this problem on the same pages. I will try to
load screenshots of the above page from both Opera and Firefox.
Here's info on my install of Firefox ($ apt-cache policy firefox-3.0):
firefox-3.0:
Installed: 3.0.11+build2+nobinonly-0ubuntu0.9.04.1
Candidate: 3.0.11+build2+nobinonly-0ubuntu0.9.04.1
Version table:
*** 3.0.11+build2+nobinonly-0ubuntu0.9.04.1 0
500 http://us.archive.ubuntu.com jaunty-updates/main Packages
500 http://security.ubuntu.com jaunty-security/main Packages
100 /var/lib/dpkg/status
3.0.8+nobinonly-0ubuntu3 0
500 http://us.archive.ubuntu.com jaunty/main Packages
** Affects: firefox-3.0 (Ubuntu)
Importance: Undecided
Status: New
** Tags: missing text
--
CSS font-size and line-height set to different units -> missing text
https://bugs.launchpad.net/bugs/403183
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox-3.0 in ubuntu.
More information about the Ubuntu-mozillateam-bugs
mailing list