<?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>293829</bug_id>
          
          <creation_ts>2025-05-30 14:38:38 -0700</creation_ts>
          <short_desc>Text selection is allowed to start from a `-webkit-user-select: none` element</short_desc>
          <delta_ts>2025-05-30 15:58:58 -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>New Bugs</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>208682</dup_id>
          
          <bug_file_loc>data:text/html,&lt;div%20style=&quot;-webkit-user-select:none&quot;&gt;start%20selection%20here&lt;/div&gt;&lt;div&gt;should%20not%20select%20text%20here&lt;/div&gt;</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="Tim Guan-tin Chien [:timdream]">timdream</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2120790</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Guan-tin Chien [:timdream]">timdream</who>
    <bug_when>2025-05-30 14:38:38 -0700</bug_when>
    <thetext>Considering the following HTML:

```
&lt;div style=&quot;-webkit-user-select:none&quot;&gt;start selection here&lt;/div&gt;
&lt;div&gt;should not select text here&lt;/div&gt;
```

data:text/html,&lt;div%20style=&quot;-webkit-user-select:none&quot;&gt;start%20selection%20here&lt;/div&gt;&lt;div&gt;should%20not%20select%20text%20here&lt;/div&gt;

I should not be allowed to select the text on the second line when I start dragging from the first line and continue to the second line.

Related spec text:

&gt; Attempting to start a selection in an element where user-select is none, such as by clicking in it or starting a drag in it, must not cause a pre-existing selection to become unselected or to be affected in any way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120791</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-30 14:39:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/152335763&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120818</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-05-30 15:58:58 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 208682 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>