Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't treat lone CRs as segment breaks.
That prevents preceding whitespace from getting collapsed. When there's a single lone CR (so `a\rb`) our behavior here diverges from Chrome's but matches Safari's. We treat it as ZWSP. That matches the initial resolution of [1], but then there have been various doing and undoings of that resolution, so it's not totally clear to me what the correct behavior per spec should be. I think "treat it as other control character"? But I haven't dug into what that implies, so for now I've just kept behavior there as-is. [1]: w3c/csswg-drafts#855 Differential Revision: https://phabricator.services.mozilla.com/D86188 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1657437 gecko-commit: b579c12907dc3bb210177454a696ccc181c1ded0 gecko-integration-branch: autoland gecko-reviewers: jfkthame
- Loading branch information