<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>21688</bug_id>
          
          <creation_ts>2008-10-16 16:40:58 -0700</creation_ts>
          <short_desc>Label counts are truncated followed by &quot;...&quot; in Gmail</short_desc>
          <delta_ts>2008-10-20 10:09:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.gmail.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="jasneet">jasneet</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jasneet</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95653</commentid>
    <comment_count>0</comment_count>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-10-16 16:40:58 -0700</bug_when>
    <thetext>I Steps:
Login to http://www.gmail.com

II Issue:
The label counts in GMail get trimmed if the label + count is long enough (for example, 15 chars in !!NextRead!! (15...). The actual value should have been !!NextRead!!(15XX)

Example:
some-label(XXXXX)

Chrome/Safari       some-label(X....
IE7                 some-label(XX..
FF3                 some-label(XXXX

So if the count is higher than XXXX i.e. XXXXX and above even FF3 truncates.
So the bug is Chrome displays only X out of XXXXX while FF3 displays XXXX

III Conclusion:
In the styles, the &lt;div&gt; that contains the text has text-overflow set to &quot;ellipsis&quot; so anytime there is an overflow, the &quot;....&quot; are shown instead of the truncated text.
FF3 doesn&apos;t use ellipsis however. It just truncates the text.

IV Other Browsers:
IE7: not ok
FF3: ok

V Nightly tested: 37604</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95654</commentid>
    <comment_count>1</comment_count>
      <attachid>24438</attachid>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-10-16 16:41:21 -0700</bug_when>
    <thetext>Created attachment 24438
reduced testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95685</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2008-10-16 19:06:32 -0700</bug_when>
    <thetext>What exactly is the bug here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95686</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-10-16 19:08:00 -0700</bug_when>
    <thetext>What is the test case supposed to demonstrate?  How is Firefox not supporting &quot;text-overflow: ellipsis&quot; a WebKit issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96014</commentid>
    <comment_count>4</comment_count>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-10-20 09:56:15 -0700</bug_when>
    <thetext>some-label(XXXXX)

Chrome/Safari       some-label(X....
IE7                 some-label(XX..
FF3                 some-label(XXXX

Anytime there is an overflow, the &quot;....&quot; are shown instead of the truncated text. Attached reduced testcase reproduces the above mentioned issue (Compare FF3 and webkit r37904)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96015</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-10-20 10:09:34 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; some-label(XXXXX)
&gt; 
&gt; Chrome/Safari       some-label(X....
&gt; IE7                 some-label(XX..
&gt; FF3                 some-label(XXXX
&gt; 
&gt; Anytime there is an overflow, the &quot;....&quot; are shown instead of the truncated
&gt; text. Attached reduced testcase reproduces the above mentioned issue (Compare
&gt; FF3 and webkit r37904)

That is precisely what &quot;text-overflow: ellipsis&quot; is supposed to do!  If the text would overflow the box, the overflow is indicate with ellipsis rather than simply truncating the text.  Firefox doesn&apos;t support the &quot;ellipsis&quot; text-overflow value, so it does not do this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24438</attachid>
            <date>2008-10-16 16:41:21 -0700</date>
            <delta_ts>2008-10-16 16:41:21 -0700</delta_ts>
            <desc>reduced testcase</desc>
            <filename>test_standard.html</filename>
            <type>text/html</type>
            <size>325</size>
            <attacher name="jasneet">jasneet</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL2h0bWw0L2xvb3NlLmR0ZCI+DQo8aHRtbD4NCjxo
ZWFkPg0KRmlyZWZveCBkb2VzIG5vdCBoYXZlIGhvbm9yIHRleHQtb3ZlcmZsb3c6ZWxsaXBzaXMu
Li5pdCBkb2Vzbid0IHNob3cgZWxsaXBzaXM8YnI+DQo8ZGl2IHN0eWxlPSJ3aWR0aDoyNXB4OyBi
b3JkZXI6MXB4IHNvbGlkIGdyZWVuOyBvdmVyZmxvdzpoaWRkZW47IHRleHQtb3ZlcmZsb3c6ZWxs
aXBzaXM7Ij5hYmNkZWY8L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>