<?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>209605</bug_id>
          
          <creation_ts>2020-03-26 10:14:01 -0700</creation_ts>
          <short_desc>[GTK] Deleting an empty line can delete -webkit-user-select: none content inside a blockout succeeding the line</short_desc>
          <delta_ts>2020-03-27 23:11:22 -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>HTML Editing</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Milan Crha">mcrha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>megan_gardner</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1634391</commentid>
    <comment_count>0</comment_count>
      <attachid>394620</attachid>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2020-03-26 10:14:01 -0700</bug_when>
    <thetext>Created attachment 394620
a.html (good)

It depends what the next sibling element contains when a Delete key is pressed in an empty DIV, while I&apos;d expect the same behaviour (the empty paragraph being removed) regardless of the next element content.

a) Open the attached a.html file in a MiniBrowser like this:

     $ MiniBrowser --editor-mode /tmp/a.html

   It opens with this content:

      line 0

      &gt; line 1
      &gt; line 2
      &gt; line 3

   where the &apos;&gt;&apos; are orange.

b) Place the cursor on the second line, aka on the empty line below the line with the &apos;line 0&apos; text.
c) press Delete key

What happens:

The text is changed to:

      line 0
      line 1
      &gt; line 2
      &gt; line 3

What is expected:

Only the empty line is removed, thus it might look like this:

      line 0
      &gt; line 1
      &gt; line 2
      &gt; line 3

Note: It seems to be related to -webkit-user-select: none; style property of .-x-evo-quoted (see the a.html file). When I change the &quot;.-x-evo-quoted&quot; in the &lt;style&gt; to something else, thus it doesn&apos;t match anything in the HTML body, like to .zzz-x-evo-quoted, then the steps behave as expected.

I see this behaviour with WebKitGTK+ at r258908.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634465</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-26 11:46:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/60929041&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634757</commentid>
    <comment_count>2</comment_count>
      <attachid>394709</attachid>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2020-03-26 23:56:32 -0700</bug_when>
    <thetext>Created attachment 394709
a.html (bad)

(In reply to Milan Crha from comment #0)
&gt; When I change the &quot;.-x-evo-quoted&quot; in the &lt;style&gt; to something else, thus it
&gt; doesn&apos;t match anything in the HTML body, like to .zzz-x-evo-quoted, then
&gt; the steps behave as expected.

Just a comment about this. I&apos;ve been testing the change before submitting the bug and, of course, I did not remove the &apos;zzz&apos; from the name before sumbit, thus the above attached a.html works properly.

I&apos;m attaching also the &quot;bad&quot; version, for simplicity. The only difference is the &quot;zzz&quot;, as mentioned above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635129</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-03-27 23:11:22 -0700</bug_when>
    <thetext>Oh, I misunderstood the problem. This isn&apos;t even a list; just a blockquote. FWIW, this doesn&apos;t seem to impact macOS.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>394620</attachid>
            <date>2020-03-26 10:14:01 -0700</date>
            <delta_ts>2020-03-26 23:54:51 -0700</delta_ts>
            <desc>a.html (good)</desc>
            <filename>a.html</filename>
            <type>text/html</type>
            <size>832</size>
            <attacher name="Milan Crha">mcrha</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+CjxzdHlsZT4KYm9keSBkaXYgewogIHdvcmQtd3JhcDogYnJlYWstd29yZDsK
ICB3b3JkLWJyZWFrOiBicmVhay13b3JkOwogIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKfQoKLnp6
ei14LWV2by1xdW90ZWQgeyAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lOyB9Ci4teC1ldm8tcXVv
dGUtY2hhcmFjdGVyIHsgY29sb3I6IG9yYW5nZTt9CgpibG9ja3F1b3RlW3R5cGU9Y2l0ZV0gewog
IHBhZGRpbmc6IDAuMGV4IDBleDsKICBtYXJnaW46IDBleDsKICAtd2Via2l0LW1hcmdpbi1zdGFy
dDogMGVtOwogIC13ZWJraXQtbWFyZ2luLWVuZCA6IDBlbTsKfQoKPC9zdHlsZT4KPC9oZWFkPgo8
Ym9keSBzdHlsZT0nZm9udC1mYW1pbHk6bW9ub3NwYWNlOycgY29udGVudGVkaXRhYmxlPSJ0cnVl
Ij4KPGRpdiBzdHlsZT0id2lkdGg6IDcxY2g7Ij5saW5lIDA8L2Rpdj48ZGl2IHN0eWxlPSJ3aWR0
aDogNzFjaDsiPjxicj48L2Rpdj48YmxvY2txdW90ZSB0eXBlPSJjaXRlIj48ZGl2PjxzcGFuIGNs
YXNzPSIteC1ldm8tcXVvdGVkIj48c3BhbiBjbGFzcz0iLXgtZXZvLXF1b3RlLWNoYXJhY3RlciI+
Jmd0OyA8L3NwYW4+PC9zcGFuPmxpbmUgMTwvZGl2PjxkaXY+PHNwYW4gY2xhc3M9Ii14LWV2by1x
dW90ZWQiPjxzcGFuIGNsYXNzPSIteC1ldm8tcXVvdGUtY2hhcmFjdGVyIj4mZ3Q7IDwvc3Bhbj48
L3NwYW4+bGluZSAyPC9kaXY+PGRpdj48c3BhbiBjbGFzcz0iLXgtZXZvLXF1b3RlZCI+PHNwYW4g
Y2xhc3M9Ii14LWV2by1xdW90ZS1jaGFyYWN0ZXIiPiZndDsgPC9zcGFuPjwvc3Bhbj5saW5lIDM8
L2Rpdj48L2Jsb2NrcXVvdGU+CjwvYm9keT48L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>394709</attachid>
            <date>2020-03-26 23:56:32 -0700</date>
            <delta_ts>2020-03-26 23:56:32 -0700</delta_ts>
            <desc>a.html (bad)</desc>
            <filename>a.html</filename>
            <type>text/html</type>
            <size>829</size>
            <attacher name="Milan Crha">mcrha</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+CjxzdHlsZT4KYm9keSBkaXYgewogIHdvcmQtd3JhcDogYnJlYWstd29yZDsK
ICB3b3JkLWJyZWFrOiBicmVhay13b3JkOwogIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKfQoKLi14
LWV2by1xdW90ZWQgeyAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lOyB9Ci4teC1ldm8tcXVvdGUt
Y2hhcmFjdGVyIHsgY29sb3I6IG9yYW5nZTt9CgpibG9ja3F1b3RlW3R5cGU9Y2l0ZV0gewogIHBh
ZGRpbmc6IDAuMGV4IDBleDsKICBtYXJnaW46IDBleDsKICAtd2Via2l0LW1hcmdpbi1zdGFydDog
MGVtOwogIC13ZWJraXQtbWFyZ2luLWVuZCA6IDBlbTsKfQoKPC9zdHlsZT4KPC9oZWFkPgo8Ym9k
eSBzdHlsZT0nZm9udC1mYW1pbHk6bW9ub3NwYWNlOycgY29udGVudGVkaXRhYmxlPSJ0cnVlIj4K
PGRpdiBzdHlsZT0id2lkdGg6IDcxY2g7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