<?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>63058</bug_id>
          
          <creation_ts>2011-06-21 01:56:59 -0700</creation_ts>
          <short_desc>text overflow ellipsis and whitespace no wrap can produce background colour artifact</short_desc>
          <delta_ts>2011-06-22 00:44:43 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Server 2003</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Luke">luke.a.page</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>helder.magalhaes</cc>
    
    <cc>webmaster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>424350</commentid>
    <comment_count>0</comment_count>
      <attachid>97950</attachid>
    <who name="Luke">luke.a.page</who>
    <bug_when>2011-06-21 01:56:59 -0700</bug_when>
    <thetext>Created attachment 97950
reproduces problem

See test case.

If I have span

New Zealand

and I am cutting off from w onwards and inserting an ellipsis, I would not expect background colours from the cut off text to be applied to the parent span. It appears broken in IE and Chrome and I will be raising a question on the mozilla text overflow bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424563</commentid>
    <comment_count>1</comment_count>
    <who name="Helder Magalhães">helder.magalhaes</who>
    <bug_when>2011-06-21 10:58:51 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; I will be raising a question on the mozilla text overflow bug.

That would be https://bugzilla.mozilla.org/show_bug.cgi?id=312156#c305 ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>425071</commentid>
    <comment_count>2</comment_count>
    <who name="Luke">luke.a.page</who>
    <bug_when>2011-06-22 00:44:43 -0700</bug_when>
    <thetext>As pointed out on the mozilla bug, it seems this is what is specified to happen

&quot;(In reply to comment #305)
&quot;Hide characters and atomic inline-level elements at the end edge of the line as necessary to fit the ellipsis.&quot;
http://dev.w3.org/csswg/css3-ui/#text-overflow

In your example, the red background belongs to a non-atomic inline,
which is still displayed even though its text is removed.

I don&apos;t see any error in IE9 or Chrome13 for your testcase, this is how
Firefox will render it as well.&quot;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>97950</attachid>
            <date>2011-06-21 01:56:59 -0700</date>
            <delta_ts>2011-06-21 01:56:59 -0700</delta_ts>
            <desc>reproduces problem</desc>
            <filename>testcase.txt</filename>
            <type>text/html</type>
            <size>796</size>
            <attacher name="Luke">luke.a.page</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjwvaGVhZD4NCjxib2R5Pg0KDQp0ZXN0IGNhc2UgMS4uIHdoaXRlc3Bh
Y2Ugd3JhcDogQ29ycmVjdCBpbiBjaHJvbWUgYW5kIElFDQoNCjxkaXYgc3R5bGU9Im92ZXJmbG93
OiBoaWRkZW47IHRleHQtb3ZlcmZsb3c6ZWxsaXBzaXM7d2lkdGg6MjBweDtib3JkZXI6IGJsYWNr
IDFweCBzb2xpZDsiPk5ldyA8c3BhbiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjogcmVkOyI+WmVh
bGFuZDwvc3Bhbj48L2Rpdj4NCg0KdGVzdCBjYXNlIDIuLiB3aGl0ZXNwYWNlIG5vIHdyYXA6IEZh
aWxzIGluIGNocm9tZSBhbmQgSU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