Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[leading-trim][IFC] Inflate layout bounds with margin/border/padding …
…when text-edge is not leading https://bugs.webkit.org/show_bug.cgi?id=248578 Reviewed by Antti Koivisto. https://www.w3.org/TR/css-inline-3/#inline-height "Additionally, when text-edge is not leading, the layout bounds are inflated by the sum of the margin, border, and padding on each side." * LayoutTests/fast/text/text-edge-with-margin-padding-border-simple-expected-mismatch.html: Added. * LayoutTests/fast/text/text-edge-with-margin-padding-border-simple.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp: (WebCore::Layout::LineBoxBuilder::setVerticalPropertiesForInlineLevelBox const): Canonical link: https://commits.webkit.org/257323@main
- Loading branch information
1 parent
943d096
commit 76780a8
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
LayoutTests/fast/text/text-edge-with-margin-padding-border-simple-expected-mismatch.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 @@ | ||
<style> | ||
div { | ||
font-family: "Arial"; | ||
background-color: green; | ||
text-edge: leading; | ||
color: transparent; | ||
} | ||
</style> | ||
<div><span style="font-size: 100px;">XXXXX</span></div> | ||
<div><span style="margin: 10px; font-size: 100px;">XXXXX</span></div> | ||
<div><span style="border: 10px solid green; font-size: 100px;">XXXXX</span></div> | ||
<div><span style="padding: 10px; font-size: 100px;">XXXXX</span></div> |
12 changes: 12 additions & 0 deletions
12
LayoutTests/fast/text/text-edge-with-margin-padding-border-simple.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 @@ | ||
<style> | ||
div { | ||
font-family: "Arial"; | ||
background-color: green; | ||
text-edge: text; | ||
color: transparent; | ||
} | ||
</style> | ||
<div><span style="font-size: 100px;">XXXXX</span></div> | ||
<div><span style="margin: 10px; font-size: 100px;">XXXXX</span></div> | ||
<div><span style="border: 10px solid green; font-size: 100px;">XXXXX</span></div> | ||
<div><span style="padding: 10px; font-size: 100px;">XXXXX</span></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