10BC0 [css-text-4] Way to only hyphenate when word is broken in “emergency situations”? · Issue #4600 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-text-4] Way to only hyphenate when word is broken in “emergency situations”? #4600

@tigt

Description

@tigt

https://www.w3.org/TR/css-text-4/#hyphenation

Sometimes, the best way to handle overlong words is overflow-wrap: break-word. Unfortunately, by default it breaks a word as soon as possible, instead of the intelligent break positions of hyphens.

Setting hyphens: auto; does hyphenate breaks from overflow-wrap, but it also breaks and hyphenates words that don’t need it:

A ragged-right paragraph with multiple consecutive lines broken at each end.

(from dassur.ma/things/when-workers/. I have to pop open devtools to disable hyphens whenever I read his blog.)

I find hyphenation difficult and distracting to read, but I appreciate their signal that a word has been broken when it’s necessary.

I would love a value like hyphens: overflow that doesn’t needlessly hyphenate, but intelligently breaks words when necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-text-4i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0