Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[LFC][IFC][Floats] Incorrect content placement when first-line style …
…is present in non-quirks mode https://bugs.webkit.org/show_bug.cgi?id=245917 Reviewed by Antti Koivisto. Use the first line style to compute the initial line height of the first line. * LayoutTests/fast/inline/tall-first-line-with-multiple-floats-expected.html: Added. * LayoutTests/fast/inline/tall-first-line-with-multiple-floats.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::lineLayout): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp: (WebCore::Layout::InlineFormattingGeometry::initialLineHeight const): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.h: * Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.cpp: (WebCore::Layout::InlineFormattingQuirks::initialLineHeight const): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.h: Canonical link: https://commits.webkit.org/255069@main
- Loading branch information
Showing
7 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
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,28 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.container { | ||
line-height: 190px; | ||
} | ||
|
||
img { | ||
background: blue; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.narrowfloat { | ||
float: left; | ||
width: 50px; | ||
height: 50px; | ||
background-color: green; | ||
} | ||
|
||
.widefloat { | ||
float: left; | ||
clear: left; | ||
width: 100px; | ||
height: 50px; | ||
background-color: green; | ||
} | ||
</style> | ||
<div class="container"><div class="narrowfloat"></div><div class="widefloat"></div><img></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.container:first-line { | ||
line-height: 190px; | ||
} | ||
|
||
img { | ||
background: blue; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.narrowfloat { | ||
float: left; | ||
width: 50px; | ||
height: 50px; | ||
background-color: green; | ||
} | ||
|
||
.widefloat { | ||
float: left; | ||
clear: left; | ||
width: 100px; | ||
height: 50px; | ||
background-color: green; | ||
} | ||
</style> | ||
<div class="container"><div class="narrowfloat"></div><div class="widefloat"></div><img></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