<?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>49358</bug_id>
          
          <creation_ts>2010-11-10 19:12:02 -0800</creation_ts>
          <short_desc>Empty spans after a line break are incorrectly positioned at the top left hand corner of their containing block</short_desc>
          <delta_ts>2010-12-17 14:00:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>307687</commentid>
    <comment_count>0</comment_count>
      <attachid>73569</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-11-10 19:12:02 -0800</bug_when>
    <thetext>Created attachment 73569
testcase

Load the attached test case.  Notice that there is no rect for the empty line in the middle (or the second rect is wrong).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>307688</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-11-10 19:12:59 -0800</bug_when>
    <thetext>&lt;rdar://problem/8639942&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323379</commentid>
    <comment_count>2</comment_count>
      <attachid>76807</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-12-16 13:24:35 -0800</bug_when>
    <thetext>Created attachment 76807
testcase

Here&apos;s a better example.  Basically getClientRects() will return a rect positioned at the top left hand corner for each empty span that occurs in the range.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323390</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-12-16 13:44:10 -0800</bug_when>
    <thetext>getClientRects is just one way to see the problem, which is that the spans are incorrectly positioned.  Will attached a better reduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323392</commentid>
    <comment_count>4</comment_count>
      <attachid>76810</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-12-16 13:45:51 -0800</bug_when>
    <thetext>Created attachment 76810
testcase

In this reduction, an empty span just after a &lt;br&gt; is positioned at the top left hand corner of its containing block, instead of after the br.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323405</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-12-16 13:59:53 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Created an attachment (id=76810) [details]
&gt; testcase

This seems to work correctly in FireFox, by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323975</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2010-12-17 13:56:47 -0800</bug_when>
    <thetext>The new radar is &lt;rdar://problem/8784036&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>73569</attachid>
            <date>2010-11-10 19:12:02 -0800</date>
            <delta_ts>2010-12-16 13:24:35 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>getClientRects.html</filename>
            <type>text/html</type>
            <size>569</size>
            <attacher name="Justin Garcia">justin.garcia</attacher>
            
              <data encoding="base64">PGJvZHk+PHNwYW4+TGluZSBPbmU8L3NwYW4+PGJyPjxzcGFuPjwvc3Bhbj48YnI+PHNwYW4+TGlu
ZSBUaHJlZTwvc3Bhbj48YnI+PHByZSBpZD0iY29uc29sZSI+PC9wcmU+PHNjcmlwdD4KY2hpbGRy
ZW4gPSBkb2N1bWVudC5ib2R5LmNoaWxkTm9kZXM7CmRvY3VtZW50LmV4ZWNDb21tYW5kKCJTZWxl
Y3RBbGwiKTsKcmVjdHMgPSB3aW5kb3cuZ2V0U2VsZWN0aW9uKCkuZ2V0UmFuZ2VBdCgwKS5nZXRD
bGllbnRSZWN0cygpOwoKY29uc29sZSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjb25zb2xl
Iik7CmNvbnNvbGUuaW5uZXJUZXh0ID0gIlRoZSBzZWxlY3RlZCBSYW5nZSdzIGdldENsaWVudFJl
Y3RzKCk6XG4iOwpmb3IgKHZhciBpID0gMDsgaSA8IHJlY3RzLmxlbmd0aDsgaSsrKQogICAgY29u
c29sZS5pbm5lclRleHQgPSBjb25zb2xlLmlubmVyVGV4dCArICJyZWN0WyIgKyBpICsgIl0gKCIg
KyByZWN0c1tpXS50b3AgKyAiLCAiICsgcmVjdHNbaV0ubGVmdCArICIsICIgKyByZWN0c1tpXS53
aWR0aCArICIsICIgKyByZWN0c1tpXS5oZWlnaHQgKyAiKVxuIjsKCjwvc2NyaXB0PjwvYm9keT4=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>76807</attachid>
            <date>2010-12-16 13:24:35 -0800</date>
            <delta_ts>2010-12-16 13:45:51 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>span-range.html</filename>
            <type>text/html</type>
            <size>608</size>
            <attacher name="Justin Garcia">justin.garcia</attacher>
            
              <data encoding="base64">PGJvZHk+PHNwYW4+TGluZSBPbmU8L3NwYW4+PGJyPjxzcGFuPjwvc3Bhbj48YnI+PHNwYW4+TGlu
ZSBUaHJlZTwvc3Bhbj48YnI+PHNwYW4+PC9zcGFuPjxicj48c3Bhbj5MaW5lIEZpdmU8L3NwYW4+
PHByZSBpZD0iY29uc29sZSI+PC9wcmU+PHNjcmlwdD4KY2hpbGRyZW4gPSBkb2N1bWVudC5ib2R5
LmNoaWxkTm9kZXM7CmRvY3VtZW50LmV4ZWNDb21tYW5kKCJTZWxlY3RBbGwiKTsKcmVjdHMgPSB3
aW5kb3cuZ2V0U2VsZWN0aW9uKCkuZ2V0UmFuZ2VBdCgwKS5nZXRDbGllbnRSZWN0cygpOwoKY29u
c29sZSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjb25zb2xlIik7CmNvbnNvbGUuaW5uZXJU
ZXh0ID0gIlRoZSBzZWxlY3RlZCBSYW5nZSdzIGdldENsaWVudFJlY3RzKCk6XG4iOwpmb3IgKHZh
ciBpID0gMDsgaSA8IHJlY3RzLmxlbmd0aDsgaSsrKQogICAgY29uc29sZS5pbm5lclRleHQgPSBj
b25zb2xlLmlubmVyVGV4dCArICJyZWN0WyIgKyBpICsgIl0gKCIgKyByZWN0c1tpXS50b3AgKyAi
LCAiICsgcmVjdHNbaV0ubGVmdCArICIsICIgKyByZWN0c1tpXS53aWR0aCArICIsICIgKyByZWN0
c1tpXS5oZWlnaHQgKyAiKVxuIjsKCjwvc2NyaXB0PjwvYm9keT4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>76810</attachid>
            <date>2010-12-16 13:45:51 -0800</date>
            <delta_ts>2010-12-16 13:45:51 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>empty-span-position.html</filename>
            <type>text/html</type>
            <size>391</size>
            <attacher name="Justin Garcia">justin.garcia</attacher>
            
              <data encoding="base64">PGJvZHk+PHNwYW4+TGluZSBPbmU8L3NwYW4+PGJyPjxzcGFuPjwvc3Bhbj48YnI+PHNwYW4+TGlu
ZSBUaHJlZTwvc3Bhbj48YnI+PHNwYW4gaWQ9InNwYW4iPjwvc3Bhbj48YnI+PHNwYW4+TGluZSBG
aXZlPC9zcGFuPjxwcmUgaWQ9ImNvbnNvbGUiPjwvcHJlPjxzY3JpcHQ+CnNwYW4gPSBkb2N1bWVu
dC5nZXRFbGVtZW50QnlJZCgic3BhbiIpOwpjb25zb2xlID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5
SWQoImNvbnNvbGUiKTsKY29uc29sZS5pbm5lckhUTUwgPSAiVGhlIGVtcHR5IHN0eWxlIHNwYW4g
YWZ0ZXIgdGhlIGZvdXJ0aCBsaW5lIGlzIHBvc2l0aW9uZWQgYXQgKCIgKyBzcGFuLm9mZnNldFRv
cCArICIsICIgKyBzcGFuLm9mZnNldFRvcCArICIpIjsKPC9zY3JpcHQ+PC9ib2R5Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>