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] Incorrect bidi visual direction after forced line break
https://bugs.webkit.org/show_bug.cgi?id=244429 Reviewed by Antti Koivisto. When we unwind/rewind the bidi stack at a forced line break for nested inline boxes with different unicode directives, we have to go all the way up to the block level. It ensures that the new (unicode)paragraph after the line break has the same set of unicode directives as the content before the forced line break. * LayoutTests/fast/text/forced-line-break-and-block-level-unicode-expected.html: Added. * LayoutTests/fast/text/forced-line-break-and-block-level-unicode.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp: (WebCore::Layout::buildBidiParagraph): LineBuilder::close: Apparently this legacy quirk does not apply to bidi content. Canonical link: https://commits.webkit.org/253872@main
- Loading branch information
1 parent
77ab8bd
commit ec3d96dee37186790ca2dbba4b0b0d64964b5811
Showing
9 changed files
with
68 additions
and
38 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,7 @@ | ||
<style> | ||
div { | ||
direction: rtl; | ||
font-family: monospace; | ||
} | ||
</style> | ||
<div>first line<br>second line</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,8 @@ | ||
<style> | ||
div { | ||
direction: rtl; | ||
unicode-bidi: bidi-override; | ||
font-family: monospace; | ||
} | ||
</style> | ||
<div>enil tsrif<br>enil dnoces</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
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