Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Issue 2532393006: Fix break-all/word-break are applied to inline elements (Closed)

Created:
4 years ago by kojii
Modified:
4 years ago
Reviewers:
eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix break-all/word-break are applied to inline elements This patch improves when properties that can break lines in the middle of a word (word-break: break-all and break-word) are applied to inline elements. When no characters can fit but there is a break opportunity in previous runs, the line should break at the opportunity. Also this fix revealed that we have tests of element boundaries relying on parent's style, and they pass only under certain conditions. This was fixed to refer to the parent's style, as recently clarified in CSS Text[1]. [1] https://github.com/w3c/csswg-drafts/issues/189 BUG=668399 Committed: https://crrev.com/f2ba82966d78cccb307a6046606a616e27c1f0df Cr-Commit-Position: refs/heads/master@{#435899}

Patch Set 1 #

Patch Set 2 : Fix whitespace-in-pre.html #

Patch Set 3 : Support parent style at element boundaries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -12 lines) Patch
A third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-break-all-in-span.html View 1 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-break-all-in-span-expected.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 4 chunks +42 lines, -12 lines 0 comments Download

Messages

Total messages: 27 (22 generated)
kojii
PTAL. Sorry that I didn't understand well enough how to handle line breaks at node ...
4 years ago (2016-12-02 08:03:46 UTC) #20
eae
LGTM
4 years ago (2016-12-02 09:53:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2532393006/50001
4 years ago (2016-12-02 09:53:32 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:50001)
4 years ago (2016-12-02 10:04:29 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-02 10:06:09 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f2ba82966d78cccb307a6046606a616e27c1f0df
Cr-Commit-Position: refs/heads/master@{#435899}

Powered by Google App Engine
This is Rietveld 408576698