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] Adjust the logical left side of the line with line spannin…
…g inline boxes https://bugs.webkit.org/show_bug.cgi?id=231851 Reviewed by Antti Koivisto. Source/WebCore: This is in preparation for supporting "box-decoration-break: clone", where the line spanning inline boxes do take up some space on the line with their horizontal margin, border and padding. Test: fast/inline/inline-box-with-left-decoration-clone.html * layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::initialize): (WebCore::Layout::Line::Run::Run): * layout/formattingContexts/inline/InlineLine.h: LayoutTests: * fast/inline/inline-box-with-left-decoration-clone-expected.html: Added. * fast/inline/inline-box-with-left-decoration-clone.html: Added. Canonical link: https://commits.webkit.org/243122@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
6 changed files
with
66 additions
and
4 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
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,4 @@ | ||
<div style="padding-left: 30px">this<br>inline box<br>has padding<br>and margin clone</div> | ||
<div style="padding-left: 60px">this<br>inline box<br>has padding<br>and margin clone</div> | ||
<div style="padding-left: 30px">this<br><span style="padding-left: 30px">inline box</span><br><span style="padding-left: 30px">has padding</span><br><span style="padding-left: 30px">and margin clone</span></div> | ||
<div style="padding-left: 30px">this<br>inline box<br>has padding<br><span style="padding-left: 30px">and margin clone</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<style> | ||
span { | ||
-webkit-box-decoration-break: clone; | ||
padding-left: 10px; | ||
margin-left: 20px; | ||
} | ||
</style> | ||
<!-- test the start side of the decoration clone --> | ||
<div><span>this<br>inline box<br>has padding<br>and margin clone</span></div> | ||
<div><span><span>this<br>inline box<br>has padding<br>and margin clone</span></span></div> | ||
<div><span>this<br><span>inline box<br>has padding<br>and margin clone</span></span></div> | ||
<div><span>this<br>inline box<br>has padding<br><span>and margin clone</span></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
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