Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[IFC] Unexpected content wrapping when percent padding is present
https://bugs.webkit.org/show_bug.cgi?id=256131 rdar://108666239 Reviewed by Antti Koivisto. Apparently this is how the rest of the render tree code deals with percent padding (see updateBlockChildDirtyBitsBeforeLayout, layoutLineBoxes etc). * LayoutTests/fast/inline/inline-block-with-precent-padding-expected.html: Added. * LayoutTests/fast/inline/inline-block-with-precent-padding.html: Added. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::layoutModernLines): Canonical link: https://commits.webkit.org/263535@main
- Loading branch information
1 parent
aa760bb
commit 36e87a1
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/inline/inline-block-with-precent-padding-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,10 @@ | ||
<style> | ||
div { | ||
background-color: cyan; | ||
font-family: Ahem; | ||
padding-left: 1%; | ||
font-size: 20px; | ||
width: 540px; | ||
} | ||
</style> | ||
<div>PASS if this is not wrapped</div> |
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/inline/inline-block-with-precent-padding.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,10 @@ | ||
<style> | ||
div { | ||
background-color: cyan; | ||
padding-left: 1%; | ||
display: inline-block; | ||
font-family: Ahem; | ||
font-size: 20px; | ||
} | ||
</style> | ||
<div>PASS if this is not wrapped</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