[Webkit-unassigned] [Bug 209605] New: Behaviour of Delete in an empty DIV depends on following content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 26 10:14:01 PDT 2020


            Bug ID: 209605
           Summary: Behaviour of Delete in an empty DIV depends on
                    following content
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcrha at redhat.com
                CC: wenson_hsieh at apple.com

Created attachment 394620

  --> https://bugs.webkit.org/attachment.cgi?id=394620&action=review


It depends what the next sibling element contains when a Delete key is pressed in an empty DIV, while I'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

      > line 1
      > line 2
      > line 3

   where the '>' are orange.

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

What happens:

The text is changed to:

      line 0
      line 1
      > line 2
      > line 3

What is expected:

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

      line 0
      > line 1
      > line 2
      > 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 ".-x-evo-quoted" in the <style> to something else, thus it doesn'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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200326/17fb87e3/attachment.htm>

More information about the webkit-unassigned mailing list