8000 [css-text-3] 'word-break: keep-all' needs to be defined more precisely · Issue #1619 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-text-3] 'word-break: keep-all' needs to be defined more precisely #1619

@kojiishi

Description

@kojiishi

The current 'word-break: keep-all' has:

Breaking is forbidden within “words”: implicit soft wrap opportunities between typographic letter units are suppressed, i.e. breaks are prohibited between pairs of letters (regardless of line-break settings) except where opportunities exist due to dictionary-based breaking. Otherwise this option is equivalent to normal. In this style, sequences of CJK characters do not break.

But this isn't very clear which break opportunities should really be suppressed. Blink has an impl, but I'm afraid this isn't interoperable.

One possible idea we could borrow from ICU discussion in ICU notes F2 is:

For "keepall", if the class is Hangul (H2, H3, JL, JV, JT) or ID, remap to AL

This is a bit different from what the current wording says, but suited for the original purpose and easy to make it interoperable.

I remember, this text was written before we generally try to move Unicode line break property, and was not updated since then while other values such as 'break-all' was changed, is this correct memory, @fantasai ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0