Re: [csswg-drafts] [css-text-4] Hyphenate only overflowing words?

I think that sort of algorithm would probably be taxing on the text rendering function in browsers, although that's only a guess based on limited technical knowledge of how this works.

Using a number for this would not really clue anyone in to what you're actually trying to accomplish, it should be described plainly in a way that is understandable.

Either you:
A. break words as they hit the container edge opposite to the text-align property (e.g. right edge if text-align is left), regardless of whether it's needed or not
B. break only words that cannot fit within the container, by breaking them at the first container edge after they begin
C. ditto as B, but break them at the last container edge they cross
D. ditto as B, but break them them in the middle (or divided evenly across number of lines needed to fit within container)

`hyphens: auto` now only does A.

My proposed solution `hyphens: overflow` was trying to solve B, but there might need to be a more granular approach to allow B, C or D, not just B.

Maybe something like:
- hyphens: overflow (B)
- hyphens: overflow-justify (C)
- hyphens: overflow-last (D)

-- 
GitHub Notification of comment by Nettsentrisk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/616#issuecomment-331130571 using your GitHub account

Received on Thursday, 21 September 2017 11:35:06 UTC