Update line-break: loose with PR test cases
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
People
(Reporter: m_kato, Assigned: m_kato, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
There is test files as testing/web-platform/tests/css/css-text/i18n/<lang>/css-text-line-break-<lang>-pr-<line break value>.html. But all tests is incorrect according to looking test and spec.
From https://w3c.github.io/csswg-drafts/css-text/#line-break-property
The following breaks are allowed for loose if the writing system is Chinese or Japanese and are otherwise forbidden:
...
breaks after prefixes:
Characters with the Unicode line breaking class PR [UAX14] and the East Asian Width property [UAX11] Ambiguous, Fullwidth, or Wide.
When the language is Japanese, and line-break:loose, a browser allows a break before a PR character with East Asian Width of A, F, or W.
So it means that this tests is incorrect that is before vs after.
Assignee | ||
Comment 1•2 years ago
|
||
According to https://w3c.github.io/csswg-drafts/css-text/#line-break-property,
The following breaks are allowed for loose if the writing system is Chinese or Japanese and are otherwise forbidden:
...
breaks after prefixes:
Characters with the Unicode line breaking class PR [UAX14] and the East Asian Width property [UAX11] Ambiguous, Fullwidth, or Wide.
But in testing/web-platform/tests/css/css-text/i18n/ja/css-text-line-break-ja-pr-loose.html,
When the language is Japanese, and line-break:loose, a browser allows a break before a PR character with East Asian Width of A, F, or W.
It means that many tests for PR property are incorrect (It mistakes before and after). We should update it to match spec.
Comment 3•1 year ago
|
||
NI for updating the patch to address Jonathan's review comments when you have the cycle. Thanks!
Description
•