[Webkit-unassigned] [Bug 18098] marquee text cut off because font-size is bigger than marquee's height

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 20 01:58:45 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=18098


Tab Atkins <tabatkins at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tabatkins at google.com
     Ever Confirmed|0                           |1




--- Comment #4 from Tab Atkins <tabatkins at google.com>  2011-10-20 01:58:45 PST ---
This is a bug, but it's the opposite of what the reporter stated.  No other browser currently pays attention to the size of the text - they all keep the marquees short and cut off the text.

We, on the other hand, appear to ensure that a marquee is at least 1em high.  This means that we'll cut off text that is made large from a font-size declaration *within* the marquee, but not text that is made large from a font-size declaration on/outside the marquee.

We should match the other platforms in their behavior, because it's saner.  If you don't want the marquee to cut off the text, you should make it large enough to contain the text.

Here's a better testcase:

<!doctype html>
<marquee style="height: 10px; width: 400px; border: thin solid black;"><span style="font-size:20px;">I'm too small for my text.</span></marquee>
<marquee style="font-size:20px; height: 10px; width: 400px; border: thin solid black;"><span>But I'm big enough to hold my text in WebKit only.</span></marquee>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list