Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-text] break-all opportunities to avoid breaking before first space #16843

Merged
merged 1 commit into from May 15, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 15, 2019

The 'white-space: break-spaces' feature, when used in combination with
'overfow-wrap: break-word' may allow breaking before the first space
after a word.

However, we should avoid it if there are previous opportunities, like
white spaces.

The 'word-break: break-all' feature allows breaking a word at any
letter. Since the goal of this feature is produce the longest line as
possible, these additional opportunities must be prioritized over any
previous white space.

Bug: 952254
Change-Id: I0b1c31219c0009c7050084dd552317342ec25b8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613177
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Javier Fernandez <jfernandez@igalia.com>
Cr-Commit-Position: refs/heads/master@{#660072}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

The 'white-space: break-spaces' feature, when used in combination with
'overfow-wrap: break-word' may allow breaking before the first space
after a word.

However, we should avoid it if there are previous opportunities, like
white spaces.

The 'word-break: break-all' feature allows breaking a word at any
letter. Since the goal of this feature is produce the longest line as
possible, these additional opportunities must be prioritized over any
previous white space.

Bug: 952254
Change-Id: I0b1c31219c0009c7050084dd552317342ec25b8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613177
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Javier Fernandez <jfernandez@igalia.com>
Cr-Commit-Position: refs/heads/master@{#660072}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants