Bug 210909 - Cannot set underline and strikethrough at the same time
Summary: Cannot set underline and strikethrough at the same time
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-23 05:34 PDT by Milan Crha
Modified: 2020-04-23 08:41 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.