-
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.
REGRESSION: A floating element can cause the latter half of a hyphena…
…ted word to disappear https://bugs.webkit.org/show_bug.cgi?id=268346 <rdar://problem/121889487> Reviewed by Antti Koivisto. It's okay to not being able to advance on the inline content even when it is partial (either through hyphenation or arbitrary breaking position) when there is an intrusive float on the line. * LayoutTests/fast/inline/intrusive-float-with-no-available-space-and-partial-content-expected.html: Added. * LayoutTests/fast/inline/intrusive-float-with-no-available-space-and-partial-content.html: Added. * Source/WebCore/layout/floats/FloatingContext.cpp: (WebCore::Layout::FloatingContext::constraints const): * Source/WebCore/layout/formattingContexts/inline/InlineContentBalancer.cpp: (WebCore::Layout::InlineContentBalancer::initialize): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::lineLayout): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp: (WebCore::Layout::InlineFormattingUtils::leadingInlineItemPositionForNextLine): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h: * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::placeInlineAndFloatContent): * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp: (WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint): Canonical link: https://commits.webkit.org/273836@main
- Loading branch information
1 parent
0806bfc
commit 9f7e229
Showing
9 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...sts/fast/inline/intrusive-float-with-no-available-space-and-partial-content-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,24 @@ | ||
<style> | ||
.content { | ||
width: 200px; | ||
border: 1px solid black; | ||
word-break: break-all; | ||
font-family: Monospace; | ||
font-size: 16px; | ||
} | ||
|
||
.before-float { | ||
float: right; | ||
width: 20px; | ||
height: 20px; | ||
background-color: green; | ||
} | ||
|
||
.after-float { | ||
float: left; | ||
width: 200px; | ||
background-color: green; | ||
height: 40px; | ||
} | ||
</style> | ||
<div class=content>PASSifthistextisfu<div class=before-float></div><div class=after-float></div>llyvisible</div> |
24 changes: 24 additions & 0 deletions
24
LayoutTests/fast/inline/intrusive-float-with-no-available-space-and-partial-content.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,24 @@ | ||
<style> | ||
.content { | ||
width: 200px; | ||
border: 1px solid black; | ||
word-break: break-all; | ||
font-family: Monospace; | ||
font-size: 16px; | ||
} | ||
|
||
.before-float { | ||
float: right; | ||
width: 20px; | ||
height: 20px; | ||
background-color: green; | ||
} | ||
|
||
.after-float { | ||
float: left; | ||
width: 200px; | ||
background-color: green; | ||
height: 40px; | ||
} | ||
</style> | ||
<div class=content><div class=before-float></div><div class=after-float></div>PASSifthistextisfullyvisible</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
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
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
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
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
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
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