web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.95k stars 3.08k forks source link

[css-text-3] line-break, word-break: language unclear, and a new testcase. #10423

Closed faceless2 closed 6 years ago

faceless2 commented 6 years ago

The language for line-break and (in particular) word-break, is unclear with regard to what changes are required to the UAX14 algorithm.

I've made a pull request for a new testcase we've been working up at https://github.com/w3c/web-platform-tests/pull/10420. This testcases is complete but will require review due to the ambiguities described below.

While developing this is became apparent that some of the language in the spec was a bit unclear - certainly to me, and as I'm seeing different results with this testcase in different browsers, maybe others.

First, I expect I am not the first to point out that "word-break" and "line-break" have some considerable overlap. As described, breaks within words like ちょっと (UAX14 classes ID CJ CJ ID) are covered by the line-break rule, although this is a single word. And of course, "line-break: anywhere" will break words. Some sort of clarifying note as to the interaction of these two features might help.

Specific areas of the text that are a bit confusing or incomplete:

We've interpreted the various property values as having the following meaning. Whether they're correct or not is almost a secondary issue at this stage; what I'm getting at is that these definitions are exact enough to work from, so I think it would be great if the descriptions for these property values were rewritten in this form, i.e. detailing exactly what changes need to be made to UAX14.

(note: posted on wrong repository, moved to https://github.com/w3c/csswg-drafts/issues/2559)

foolip commented 6 years ago

@faceless2, I haven't read you issue in detail, but it looks like spec feedback and if so should be filed as an issue at https://github.com/w3c/csswg-drafts/issues/new

If you re-file it there, please close this issue. And thanks for working on https://github.com/w3c/web-platform-tests/pull/10420! If you can't manage to find a reviewer, try pinging people who have done work in the area directly. If you have no luck after repeated attempts, feel free to ping me.

faceless2 commented 6 years ago

Ha, quite right - I have posted this on the wrong repository. And there was me wondering why everyone had gone quiet. Reposted as https://github.com/w3c/csswg-drafts/issues/2559