New issue
Advanced search Search tips

Issue 919263 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

line-break:strict does not work for ja without lang

Reported by zhengxu7...@gmail.com, Jan 5

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) Gecko/20100101 Firefox/64.0

Example URL:

Steps to reproduce the problem:
1. load attached html
2. confirm if small 'ゃ' is displayed at top of second line

What is the expected behavior?
Line-break should happen between 'キン' and 'ち' (Please refer to safari.png)

What went wrong?
From https://drafts.csswg.org/css-text-3/#line-break-property I think chromium should apply strict for Japanese then 'ゃ' should not come to top of next line so that attached line-break-no-lang.html should be displayed same as line-break-lang-en.html and line-break-lang-ja.html.
From attached line-break-lang-en.html and line-break-lang-ja.html we can see chromium are able to detect strict rule base on typography instead of relying on lang in html element. However, when html missed lang then currently chromium seems could not handle line-break:strict correctly for ja.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 71.0.3578.98 (Official Build) (64-bit)  Channel: stable
OS Version: OS X 10.13
Flash Version:
 
safari.png
5.1 KB View Download
line-break-lang-en.html
433 bytes View Download
line-break-lang-ja.html
433 bytes View Download
line-break-no-lang.html
423 bytes View Download
Add snapshot of line-break-no-lang.html from current chrome.
chrome.png
5.0 KB View Download
Labels: Needs-Triage-M71
Cc: viswa.karala@chromium.org
Components: Blink>CSS
Labels: -Type-Compat Triaged-ET Target-73 M-73 FoundIn-71 FoundIn-73 FoundIn-72 OS-Linux OS-Windows Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on chrome reported version# 71.0.3578.98 and on latest chrome# 73.0.3663.0 with '.html' file provided in comment# 0 using Mac 10.14.1, Windows-10 and Ubuntu 17.10. As this issue is seen from M-60(60.0.3112.0), hence considering this as Non-Regression and marking it as Untriaged.
Thanks for confirming.
Cc: kojii@chromium.org
Status: Available (was: Untriaged)
Labels: -Pri-2 Pri-3
I believe both WebKit and Blink requires lang set properly. When omitted, though, maybe WebKit takes it from the system, while Blink assumes no lang.

Is the system you tested have Japanese as system/ui language?

Comment 7 by z...@kobo.com, Jan 19 (4 days ago)

Sorry for late. Yes the system I used was set to Japanese.

Sign in to add a comment