<?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>21960</bug_id>
          
          <creation_ts>2008-10-29 15:58:45 -0700</creation_ts>
          <short_desc>Chrome/Safari selects the region outside the element</short_desc>
          <delta_ts>2023-05-05 19:23:28 -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>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://bash.org.ru/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon@Chromium">jon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>michael.vm</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97063</commentid>
    <comment_count>0</comment_count>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2008-10-29 15:58:45 -0700</bug_when>
    <thetext>Issue originated in Chromium bugs, see http://code.google.com/p/chromium/issues/detail?id=3527

IE and FF selects only the region inside the red box but Chrome/Safari does select the region outside.

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;body&gt;
&lt;div style=&quot;margin: 20px auto; width: 740px;font-family: &apos;Lucida Grande&apos;, &apos;Tahoma&apos;, sans-serif; border: 2px solid red&quot;&gt;Only area with in div region should get selected. But the region that lies outside the div also gets selected.&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

See the attached reductions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97064</commentid>
    <comment_count>1</comment_count>
      <attachid>24759</attachid>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2008-10-29 15:59:35 -0700</bug_when>
    <thetext>Created attachment 24759
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97065</commentid>
    <comment_count>2</comment_count>
      <attachid>24760</attachid>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2008-10-29 16:00:22 -0700</bug_when>
    <thetext>Created attachment 24760
Reduction (quirks mode)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953298</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-05 14:18:03 -0700</bug_when>
    <thetext>Isn&apos;t this intentional behavior of WebKit / Safari to have gapless selection, hence, we have empty space with &apos;selection&apos; color painted as well, while Chrome now has &apos;gapped&apos; selection, so only have selection around text?

Can someone please confirm whether we need to fix it or not? Or we can mark this duplicate of other &apos;gapped&apos; selection bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953354</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-05-05 19:23:28 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #3)
&gt; Isn&apos;t this intentional behavior of WebKit / Safari to have gapless
&gt; selection, hence, we have empty space with &apos;selection&apos; color painted as
&gt; well, while Chrome now has &apos;gapped&apos; selection, so only have selection around
&gt; text?
Correct!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24759</attachid>
            <date>2008-10-29 15:59:35 -0700</date>
            <delta_ts>2008-10-29 15:59:35 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>mytest-standard.html</filename>
            <type>text/html</type>
            <size>334</size>
            <attacher name="Jon@Chromium">jon</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+DQo8aHRtbD4NCjxib2R5Pg0KPGRpdiBzdHlsZT0ibWFyZ2luOiAyMHB4IGF1dG87IHdp
ZHRoOiA3NDBweDtmb250LWZhbWlseTogJ0x1Y2lkYSBHcmFuZGUnLCAnVGFob21hJywgc2Fucy1z
ZXJpZjsgYm9yZGVyOiAycHggc29saWQgcmVkIj5Pbmx5IGFyZWEgd2l0aCBpbiBkaXYgcmVnaW9u
IHNob3VsZCBnZXQgc2VsZWN0ZWQuIEJ1dCB0aGUgcmVnaW9uIHRoYXQgbGllcyBvdXRzaWRlIHRo
ZSBkaXYgYWxzbyBnZXRzIHNlbGVjdGVkLjwvZGl2Pg0KPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24760</attachid>
            <date>2008-10-29 16:00:22 -0700</date>
            <delta_ts>2008-10-29 16:00:22 -0700</delta_ts>
            <desc>Reduction (quirks mode)</desc>
            <filename>mytest-quirks.html</filename>
            <type>text/html</type>
            <size>269</size>
            <attacher name="Jon@Chromium">jon</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8Ym9keT4NCjxkaXYgc3R5bGU9Im1hcmdpbjogMjBweCBhdXRvOyB3aWR0aDogNzQw
cHg7Zm9udC1mYW1pbHk6ICdMdWNpZGEgR3JhbmRlJywgJ1RhaG9tYScsIHNhbnMtc2VyaWY7IGJv
cmRlcjogMnB4IHNvbGlkIHJlZCI+T25seSBhcmVhIHdpdGggaW4gZGl2IHJlZ2lvbiBzaG91bGQg
Z2V0IHNlbGVjdGVkLiBCdXQgdGhlIHJlZ2lvbiB0aGF0IGxpZXMgb3V0c2lkZSB0aGUgZGl2IGFs
c28gZ2V0cyBzZWxlY3RlZC48L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>