Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
HTMLEditUtils
treat <br>
elements always inline
As far as I've tested, `<br>` element is always treated as usual even if its `display` is set to anything except `none`. Therefore, preceding collapsible white-spaces and `<br>` element should be treated as visible even if the following `<br>` element is `display:block` or something. Note that if `display:none` is specified, we should not treat it as a line break, but our editor cannot work properly in the case and `HTMLEditUtils` currently uses the default style of HTML elements if `display:none` is specified. Therefore, this patch makes `HTMLEditUtils` always treat `<br>` as inline. Differential Revision: https://phabricator.services.mozilla.com/D203403 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1881906 gecko-commit: b3c409d3ff5a2ad3721c3dd0177f86dc1129ebb1 gecko-reviewers: m_kato
- Loading branch information