<?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>4875</bug_id>
          
          <creation_ts>2005-09-07 12:45:14 -0700</creation_ts>
          <short_desc>link jumping should scroll to tallest object on line, not first object on line</short_desc>
          <delta_ts>2005-12-26 14:08:32 -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>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>4964</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Vicki Murley">vicki</assigned_to>
          <cc>vicki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19023</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-07 12:45:14 -0700</bug_when>
    <thetext>Summary: If a named anchor comes right before a table (and there&apos;s no whitespace between them) then 
a link to the anchor scrolls to the first text in the table rather than to where the anchor is.

To reproduce:
1) Open the testcase in Safari
2) Click the &quot;Click here&quot; link

Expected: in step 2, page should scroll to &quot;You came to the right place!&quot;.

Actual: in step 2, page scrolls to &quot;I didn&apos;t expect you to get this far!&quot;.

(Similar to bug 4825, but this one is not a regression).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19024</commentid>
    <comment_count>1</comment_count>
      <attachid>3800</attachid>
    <who name="">mitz</who>
    <bug_when>2005-09-07 12:45:58 -0700</bug_when>
    <thetext>Created attachment 3800
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19025</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-07 12:47:12 -0700</bug_when>
    <thetext>Forgot to mention that Firefox behaves as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19029</commentid>
    <comment_count>3</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-09-07 14:36:26 -0700</bug_when>
    <thetext>Scrolling to anchors is broken in many ways, in large part b/c the function that calculates the position to 
scroll to (getUpperLeftCorner) predates the line box tree. 

Let&apos;s use this bug as a master bug for this issue.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19590</commentid>
    <comment_count>4</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-09-13 11:30:56 -0700</bug_when>
    <thetext>Two related bugs about scrolling to anchors:
http://bugzilla.opendarwin.org/show_bug.cgi?id=3390
http://bugzilla.opendarwin.org/show_bug.cgi?id=4964</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22230</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-10-18 16:16:32 -0700</bug_when>
    <thetext>Putting a border on the table makes this test case a bit more clear IMO.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23105</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-10-28 01:41:32 -0700</bug_when>
    <thetext>Vicki fixed this but I&apos;m not sure the bug can be closed because it&apos;s tracking other scroll-to-anchor issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23108</commentid>
    <comment_count>7</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-10-28 01:57:07 -0700</bug_when>
    <thetext>I think we can close this.  The only remaining bug that is related to this bug is http://
bugzilla.opendarwin.org/show_bug.cgi?id=3390, and the originator claims that bug has something to do 
with stylesheets.  The fixes I made pertain only to the algorithm that calculates the position to scroll to.  

By the way Mitz, thanks for all of your great test cases!  They really helped in coming up with a solution 
that covered a lot of edge cases.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3800</attachid>
            <date>2005-09-07 12:45:58 -0700</date>
            <delta_ts>2005-09-07 12:45:58 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>scrollToAnchorAgain.html</filename>
            <type>text/html</type>
            <size>408</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+Cjx0aXRsZT5TY3JvbGxpbmcgdG8gYW5jaG9ycyBhZ2FpbjwvdGl0bGU+Cjwv
aGVhZD4KPGJvZHk+CjxwPjxhIGhyZWY9IiMwIj5DbGljayBoZXJlPC9hPjwvcD4KPGRpdiBzdHls
ZT0id2lkdGg6MTAwJTtoZWlnaHQ6MTAwMHB4OyI+PHNwYW4gc3R5bGU9InBvc2l0aW9uOnJlbGF0
aXZlOyB0b3A6MTAxMHB4OyI+WW91IGNhbWUgdG8gdGhlIHJpZ2h0IHBsYWNlITwvc3Bhbj48L2Rp
dj4KPGEgbmFtZT0iMCI+PC9hPjx0YWJsZSBzdHlsZT0iaGVpZ2h0OjIwMDBweDsiPjx0cj48dGQ+
SSBkaWRuJnJzcXVvO3QgZXhwZWN0IHlvdSB0byBnZXQgdGhpcyBmYXIhPC90ZD48L3RyPjwvdGFi
bGU+CjxkaXYgc3R5bGU9IndpZHRoOjEwMCU7IGhlaWdodDoxMDAwcHg7Ij48L2Rpdj4KPC9ib2R5
PjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>