RESOLVED FIXED Bug 11004
font-size: 0 is ignored
https://bugs.webkit.org/show_bug.cgi?id=11004
Summary font-size: 0 is ignored
mitz
Reported 2006-09-24 02:20:51 PDT
Setting font-size to 0 or 0px should make the text not render at all (Firefox) or no bigger than 1px (WinIE). WebKit seems to ignore a font-size of 0. Gmail uses font-size:0px for the message at the top meant for screen reader users. Since WebKit ignores it, the Google services box on the left wraps (see screenshots).
Attachments
Safari layout (33.77 KB, image/png)
2006-09-24 02:27 PDT, mitz
no flags
Safari layout, text selected (39.72 KB, image/png)
2006-09-24 02:28 PDT, mitz
no flags
Firefox layout (33.32 KB, image/png)
2006-09-24 02:28 PDT, mitz
no flags
Patch. (365 bytes, patch)
2006-09-24 15:38 PDT, Dave Hyatt
no flags
Patch (151.65 KB, patch)
2010-11-16 14:58 PST, Dave Hyatt
mitz: review+
mitz
Comment 1 2006-09-24 02:27:31 PDT
Created attachment 10731 [details] Safari layout
mitz
Comment 2 2006-09-24 02:28:21 PDT
Created attachment 10732 [details] Safari layout, text selected
mitz
Comment 3 2006-09-24 02:28:44 PDT
Created attachment 10733 [details] Firefox layout
Dave Hyatt
Comment 4 2006-09-24 14:04:34 PDT
What a lame hack.
Dave Hyatt
Comment 5 2006-09-24 15:38:37 PDT
Created attachment 10745 [details] Patch. Looks like we get a 1px rendering when specifying 0. I think AppKit or someone is doing that.
Eric Seidel (no email)
Comment 6 2006-09-24 19:29:01 PDT
Comment on attachment 10745 [details] Patch. You need a test case and a ChangeLog, otherwise fine. r=me
Timothy Hatcher
Comment 7 2006-09-25 22:46:55 PDT
Dave you should change the WebKitMinimumFontSizePreferenceKey default to 0, right now it is 1. Was this where the 1px render came from?
mitz
Comment 8 2006-09-30 01:38:36 PDT
Fixed in r16678 & r16679. No test landed.
Dave Hyatt
Comment 9 2006-09-30 01:43:56 PDT
There's still some debate going on, which is why i haven't marked fixed yet (or done the test). I think I'm going to back out the pref change and just keep it at 1 (so we'll match WinIE).
mitz
Comment 10 2006-10-09 17:39:23 PDT
Comment on attachment 10745 [details] Patch. Clearing r+ to keep this from showing up in the commit queue. Leaving the bug open pending a layout test.
Robert Blaut
Comment 11 2008-02-05 03:38:39 PST
IMO bug 13891 is related to this bug.
Robert Blaut
Comment 12 2008-02-09 16:10:01 PST
The bug is related to bug 15086.
Alexey Proskuryakov
Comment 13 2010-05-15 14:49:01 PDT
*** Bug 39148 has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 14 2010-05-15 14:50:51 PDT
What's the status of this bug? Per comment 8, it was fixed, but the behavior is still the same according to the above duplicate.
mitz
Comment 15 2010-06-21 15:28:37 PDT
Dave Hyatt
Comment 16 2010-11-16 14:58:39 PST
Dave Hyatt
Comment 17 2010-11-16 15:29:19 PST
Fixed in r72141.
Dave Hyatt
Comment 18 2010-11-16 15:30:10 PST
*** Bug 49582 has been marked as a duplicate of this bug. ***
WebKit Review Bot
Comment 19 2010-11-16 20:07:14 PST
http://trac.webkit.org/changeset/72141 might have broken Leopard Intel Debug (Tests)
Suresh Voruganti
Comment 20 2011-02-22 07:57:09 PST
Pls cherry pick the fix to Qtwebkit 2.1.x branch because this patch fixes failure "First rectangle shows two colors when accessing a link on CSS 3 color public test suite." in QtTestBrowser in Symbian.
Ademar Reis
Comment 21 2011-02-28 14:17:36 PST
(In reply to comment #20) > Pls cherry pick the fix to Qtwebkit 2.1.x branch because this patch fixes failure > "First rectangle shows two colors when accessing a link on CSS 3 color public test suite." in QtTestBrowser in Symbian. r72141 is too risky and complex to be added to qtwebkit-2.1.x. When it landed on trunk, it introduced several small regressions (see, for example, bug 49846, bug 49638, bug 52765 and bug 52265, plus other references in the git log). A backport would be needed and substantial Q&A to minimize the risk of regressions. Since this is not part of the qtwebkit-2.1.x scope and is marked as "nice-to-have", I'm removing it from the meta-bug.
Frances Cornwall
Comment 22 2024-05-22 14:22:56 PDT
*** Bug 15086 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.