Bug 194156

Summary: Bug on the removeFormat command for contentEditable elements
Product: WebKit Reporter: Raphael Chauveau <raph.chauveau>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: wenson_hsieh
Priority: P2    
Version: Safari 11   
Hardware: Mac   
OS: macOS 10.13   
Attachments:
Description Flags
code to reproduce the bug none

Raphael Chauveau
Reported 2019-02-01 08:26:19 PST
Created attachment 360862 [details] 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.
Attachments
code to reproduce the bug (1.37 KB, text/plain)
2019-02-01 08:26 PST, Raphael Chauveau
no flags
Note You need to log in before you can comment on or make changes to this bug.