[Webkit-unassigned] [Bug 194156] New: Bug on the removeFormat command for contentEditable elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 1 08:26:19 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=194156

            Bug ID: 194156
           Summary: Bug on the removeFormat command for contentEditable
                    elements
           Product: WebKit
           Version: Safari 11
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: raph.chauveau at gmail.com
                CC: wenson_hsieh at apple.com

Created attachment 360862

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

code to reproduce the bug

When removing format from a contentEditable element where styling has been applied in a specific order, the background color is left behind and overflows.

Steps to reproduce the problem, using the attached demo file :
# Select the word "love" in the Demo bellow
# Click the button "Bold"
# Click the button "Background color"
# Click the button "Foreground color"
# Select the words "I love pizza"
# Click the button "Remove format"

What is the expected behavior?
After the execution of the above steps, we expect the words "I love pizza" to have no formatting (color or font style).

What went wrong?
We notice that the words "love pizza" have a green background color.

This bug could be reproduced in Chrome and Safari, but not Firefox. This leads me to think that Webkit is the source of the bug.

-- 
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/20190201/0440c093/attachment-0001.html>


More information about the webkit-unassigned mailing list