[Webkit-unassigned] [Bug 47054] execCommand('FormatBlock') does not preserve inline styles of the replaced block elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 12 13:27:19 PST 2023


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

--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
I tried - https://github.com/WebKit/WebKit/pull/8536 to merge Blink patch but it is not suitable and we need to account for following comment from rniwa:

'''
I don't think the code change as currently proposed makes much sense. For one, there is mismatch between outerBlock vs blockNode. For another, we shouldn't be just copying style attribute. We need to get the computed style and apply that style to the block if we're failing to preserve the style in this command. e.g. using EditingStyle::prepareToApplyAt and ApplyStyleCommand.
'''

-- 
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/20230112/9b4e816b/attachment.htm>


More information about the webkit-unassigned mailing list