Skip to content

Commit

Permalink
css-text: Fix an issue on justification with a bidi isolate control
Browse files Browse the repository at this point in the history
Do not reset `is_after_expansion` state by a default ignorable code
point, which includes bidi controls.

Bug: 331680200
Change-Id: I2c79ec467052861e9048b0b7575e8f29dc0570b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5401304
Commit-Queue: Koji Ishii <[email protected]>
Auto-Submit: Kent Tamura <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1280093}
  • Loading branch information
tkent-google authored and chromium-wpt-export-bot committed Mar 29, 2024
1 parent 2cfdefd commit d281c71
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions css/css-text/text-align/text-align-justify-bidi-control-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>text-align: justify for a bidi control + a CJK ideograph</title>
<style>
p { text-align: justify; width: 3.9em; }
</style>
</head>
<body>
<p>東京都東京都東京都</p>
</body>
</html>
16 changes: 16 additions & 0 deletions css/css-text/text-align/text-align-justify-bidi-control.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>text-align: justify for a bidi control + a CJK ideograph</title>
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="help" href="https://crbug.com/331680200">
<link rel="match" href="text-align-justify-bidi-control-ref.html">
<style>
p { text-align: justify; width: 3.9em; }
</style>
</head>
<body>
<p>東&#x2066;京都東京&#x2069;都東京都</p>
</body>
</html>

0 comments on commit d281c71

Please sign in to comment.