Bug 210909

Summary: Cannot set underline and strikethrough at the same time
Product: WebKit Reporter: Milan Crha <mcrha>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Milan Crha 2020-04-23 05:34:20 PDT
This sounds quite similarly as bug #27818, except that one is closed as fixed. I can reproduce this in r260336.

Steps:

a) one MiniBroser:  ./MiniBrowser --editor-mode
b) type: aaa
c) click the Underline button on the toolbar
d) type: bbb
e) click the strikethrough button on the toolbar
f) type: ccc

Expected result: the 'ccc' text is both underlined and stroke through
Actual result: it is only stroke through

g) click the Underline button on the toolbar
h) type: ddd

Expected result: the 'ddd' text is both underlined and stroke through
Actual result: it is only underlined
Comment 1 Milan Crha 2020-04-23 08:41:17 PDT
In Editor::applyStyleToSelection():
    // FIXME: This is wrong for text decorations since m_mutableStyle is empty.