<?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>6432</bug_id>
          
          <creation_ts>2006-01-08 12:08:28 -0800</creation_ts>
          <short_desc>Highlight selection is twice as high in PRE-formatted text after a blank line</short_desc>
          <delta_ts>2006-04-12 04:04:14 -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>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>8333</dup_id>
          
          <bug_file_loc>http://bugzilla.opendarwin.org/show_bug.cgi?id=6432</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28003</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-01-08 12:08:28 -0800</bug_when>
    <thetext>Summary: 

When highlighting PRE-formatted text, any line of text that appears below a blank line will have a 
selection area twice as high as the text itself.

Steps to Reproduce: 

1. Open test case attachment.
2. Highlight &quot;Line 2&quot;.

Expected Results: 

Highlighting &quot;Line 2&quot; should only highlight the height of the text.

Actual Results: 

Highlighting &quot;Line 2&quot; highlights twice the height of the text.

Regression: 

This also occurs in Mac OS X 10.4.3 with Safari 2.0.2 (416.13).

Notes: 

- Firefox 1.5 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 
Firefox/1.5) does not exhibit this behavior on the same test file.
- In Firefox, user is able to select the carriage return in the blank line by click-dragging the mouse 
from  after the last text on &quot;Line 1&quot; until before the text on &quot;Line 2&quot;.  This is not possible in Safari, 
although it may be a different issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28004</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-01-08 12:11:02 -0800</bug_when>
    <thetext>&gt; - In Firefox, user is able to select the carriage return in the blank line by click-dragging
&gt; the mouse from  after the last text on &quot;Line 1&quot; until before the text on &quot;Line 2&quot;.  This is 
&gt; not possible in Safari, although it may be a different issue.

Ignore this comment--it&apos;s not true.  I can select the carriage return by itself this way.  It&apos;s only the 
highlighting that is the issue.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28005</commentid>
    <comment_count>2</comment_count>
      <attachid>5550</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-01-08 12:12:37 -0800</bug_when>
    <thetext>Created attachment 5550
Test case

Actually, this bug is reproducible on the text of most comments in Bugzilla.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32900</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-15 20:17:58 -0800</bug_when>
    <thetext>Another good example of this (where the highlight is about 5x too tall) is in the Bugzilla bug mail:

http://www.opendarwin.org/pipermail/webkit-unassigned/2006-January/001427.html

Try highlighting text on this line on that web page:

------- Additional Comments From ...
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38994</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-04-11 22:48:33 -0700</bug_when>
    <thetext>I think bug 8333 is a duplicate of this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39019</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-04-12 04:04:14 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I think bug 8333 is a duplicate of this bug.

Good catch!  I&apos;m going to mark this bug a dup of bug 8333, though, since there&apos;s a lot more implementation detail in that bug than in this one.


*** This bug has been marked as a duplicate of 8333 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5550</attachid>
            <date>2006-01-08 12:12:37 -0800</date>
            <delta_ts>2006-01-08 12:12:37 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>bug-6432-test-highlight.html</filename>
            <type>text/html</type>
            <size>180</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">PHByZT5MaW5lIDEgTGluZSAxIExpbmUgMSBMaW5lIDEgTGluZSAxIExpbmUgMSBMaW5lIDEgTGlu
ZSAxIExpbmUgMSBMaW5lIDEgTGluZSAxIExpbmUgMQoKTGluZSAyIExpbmUgMiBMaW5lIDIgTGlu
ZSAyIExpbmUgMiBMaW5lIDIgTGluZSAyIExpbmUgMiBMaW5lIDIgTGluZSAyIExpbmUgMiBMaW5l
IDI8L3ByZT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>