-
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.
[IFC] inline-block child preceded by an inline child has incorrect po…
…sitioning in vertical writing modes with a right-to-left direction https://bugs.webkit.org/show_bug.cgi?id=264425 <rdar://problem/118128181> Reviewed by Antti Koivisto. Turn (half)logical left to visual on BoxGeometry too. * LayoutTests/fast/text/rtl-vertical-text-misalign-with-inline-blocks-expected.html: Added. * LayoutTests/fast/text/rtl-vertical-text-misalign-with-inline-blocks.html: Added. * Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp: (WebCore::Layout::InlineDisplayContentBuilder::adjustVisualGeometryForDisplayBox): (WebCore::Layout::InlineDisplayContentBuilder::setLeftForWritingMode const): * Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.h: Canonical link: https://commits.webkit.org/270442@main
- Loading branch information
1 parent
c2058bf
commit 1a7f8f4
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
LayoutTests/fast/text/rtl-vertical-text-misalign-with-inline-blocks-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,7 @@ | ||
<style> | ||
.container { | ||
writing-mode: vertical-rl; | ||
font-family: Ahem; | ||
} | ||
</style> | ||
<div class=container>this shouldall be on the same line</div> |
11 changes: 11 additions & 0 deletions
11
LayoutTests/fast/text/rtl-vertical-text-misalign-with-inline-blocks.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,11 @@ | ||
<style> | ||
.container { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
font-family: Ahem; | ||
} | ||
.content { | ||
display: inline-block; | ||
} | ||
</style> | ||
<div class=container><div class=content>all be on the same line</div><span></span><div class=content>this should</div></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