commit | ce922e757f5badefe2337029520926bd2d3e5e77 | [log] [tgz] |
---|---|---|
author | Javier Fernandez <jfernandez@igalia.com> | Wed Mar 28 14:03:57 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 28 14:03:57 2018 |
tree | 6c8d4f42c0733fcb20a3d5b9853a0c6c93d08a30 | |
parent | d87bfe70381a444b37edfce46bd7aca0077756ec [diff] |
Backspacing shouldn't merge content into tables except for macOS When uses hits backspace at the start of a paragraph, the content in that block is merged in the previous block in the paragraph above. All the browsers have the same behavior except in the case of such previous block being a table. Firefox and Edge both avoid merging the content into the table. I've filed a issue in the Editing TF [1] to get some consensus, but it seems that current behavior was implemented to match TextEdit and other native text editing apps in macOS. Considering that both MS Word and Google Docs avoid merging content on backspacing, I think it's a good option for the end user that Chrome implements that behavior as well, improving also the browsers interoperability (we'll match Firefox and Edge). I'll keep the current logic for macOS using an EditingBehavior flag, so we can switch to a different behavior based on platform. [1] https://github.com/w3c/editing/issues/164 Bug: 731000 Change-Id: Ibc5cad576b7115877a36929f717ff5ed194d0977 Reviewed-on: https://chromium-review.googlesource.com/981137 Commit-Queue: Javier Fernandez <jfernandez@igalia.com> Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#546475}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .