-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 2c41110. rdar://122811940
[IFC][Ruby] Ruby base content may wrap even when style says no https://bugs.webkit.org/show_bug.cgi?id=269235 <rdar://122811940> Reviewed by Antti Koivisto. There's no soft wrap opportunity between 2 adjacent non-whitespace characters when style says nowrap. * LayoutTests/fast/ruby/ruby-base-content-should-not-wrap-expected.html: Added. * LayoutTests/fast/ruby/ruby-base-content-should-not-wrap.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp: (WebCore::Layout::isAtSoftWrapOpportunity): Canonical link: https://commits.webkit.org/272448.537@safari-7618-branch Identifier: 272448.559@safari-7618.1.15.10-branch
- Loading branch information
1 parent
63a32a0
commit 485b612
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
LayoutTests/fast/ruby/ruby-base-content-should-not-wrap-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<meta charset="UTF-8"> | ||
<style> | ||
div { | ||
font-family: Ahem; | ||
font-size: 20px; | ||
width: 40px; | ||
border: 1px solid green; | ||
overflow: hidden; | ||
} | ||
</style> | ||
<div>X <ruby>稲稲</ruby></div> |
12 changes: 12 additions & 0 deletions
12
LayoutTests/fast/ruby/ruby-base-content-should-not-wrap.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<meta charset="UTF-8"> | ||
<style> | ||
div { | ||
font-family: Ahem; | ||
font-size: 20px; | ||
width: 40px; | ||
border: 1px solid green; | ||
overflow: hidden; | ||
} | ||
</style> | ||
<!-- while there's a natural breaking position between 稲 and 稲, nowrap should prevent wrapping --> | ||
<div>X <ruby>稲稲</ruby>,X</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters