RESOLVED FIXED 122874
During editing, merge inline style with overriding other author styles
https://bugs.webkit.org/show_bug.cgi?id=122874
Summary During editing, merge inline style with overriding other author styles
KyungTae Kim
Reported 2013-10-15 18:07:56 PDT
Created attachment 214326 [details] testcase On editable contents, If you backspace before a first character of a line, the line is merged to the upper line with merging parents' style to the inline style. If there are conflicting styles in parent's styles, not the inline style of the parent but the embedded style of the parent is applied (as the attached test case).
Attachments
testcase (340 bytes, text/html)
2013-10-15 18:07 PDT, KyungTae Kim
no flags
Patch (2.29 KB, patch)
2013-10-15 18:16 PDT, KyungTae Kim
no flags
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 (469.26 KB, application/zip)
2013-10-15 19:10 PDT, Build Bot
no flags
Patch (4.79 KB, patch)
2013-10-15 22:20 PDT, KyungTae Kim
no flags
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (477.61 KB, application/zip)
2013-10-15 23:28 PDT, Build Bot
no flags
Patch (6.46 KB, patch)
2013-10-15 23:56 PDT, KyungTae Kim
no flags
Patch (4.55 KB, patch)
2013-10-16 01:06 PDT, KyungTae Kim
no flags
KyungTae Kim
Comment 1 2013-10-15 18:16:49 PDT
Build Bot
Comment 2 2013-10-15 19:10:22 PDT
Comment on attachment 214327 [details] Patch Attachment 214327 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/3494318 New failing tests: editing/deleting/merge-paragraph-from-p-with-style.html editing/deleting/merge-paragraph-with-style-from-rule.html
Build Bot
Comment 3 2013-10-15 19:10:24 PDT
Created attachment 214330 [details] Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Ryosuke Niwa
Comment 4 2013-10-15 19:12:58 PDT
Comment on attachment 214327 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=214327&action=review This patch needs a test case demonstrating it fixes a bug; at minimum it shouldn't regress tests. > Source/WebCore/ChangeLog:9 > + Inline styles need to override other author styles, > + so if DoNotOverrideValues mode, inline styles need to be merged before other author styles. Why?
KyungTae Kim
Comment 5 2013-10-15 22:20:53 PDT
KyungTae Kim
Comment 6 2013-10-15 22:26:44 PDT
(In reply to comment #4) > (From update of attachment 214327 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=214327&action=review > > This patch needs a test case demonstrating it fixes a bug; at minimum it shouldn't regress tests. > > > Source/WebCore/ChangeLog:9 > > + Inline styles need to override other author styles, > > + so if DoNotOverrideValues mode, inline styles need to be merged before other author styles. > > Why? I added patch with newly added test case. On the attached test case, if you backspace on the start of the 2nd line, the style for class (color:red) is merged, but the inline style (color:blue) is not merged because it's DoNotOverrideValues mode. Then, as a result, only the style that was not applied is merged, and the color is changed! I think merging inline style first can be a solution for that.
Build Bot
Comment 7 2013-10-15 23:28:21 PDT
Comment on attachment 214339 [details] Patch Attachment 214339 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/4110149 New failing tests: editing/deleting/merge-paragraph-from-p-with-style.html editing/deleting/merge-paragraph-with-style-from-rule.html
Build Bot
Comment 8 2013-10-15 23:28:22 PDT
Created attachment 214342 [details] Archive of layout-test-results from webkit-ews-08 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
KyungTae Kim
Comment 9 2013-10-15 23:56:52 PDT
KyungTae Kim
Comment 10 2013-10-16 01:06:13 PDT
Ryosuke Niwa
Comment 11 2013-10-16 10:09:31 PDT
New patch looks much better.
WebKit Commit Bot
Comment 12 2013-10-16 10:34:20 PDT
Comment on attachment 214347 [details] Patch Clearing flags on attachment: 214347 Committed r157522: <http://trac.webkit.org/changeset/157522>
WebKit Commit Bot
Comment 13 2013-10-16 10:34:23 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.