Re: [csswg-drafts] [css-text-4] hyphenate-character doesn't just put hyphen at end of line (#2975)

> But I really like @Crissov's (low-key) idea of using a newline. If the hyphenate-character has a newline, split at the first newline and put the first half and the end of the first line, and the second half at the start of the second line. If not, it goes at the end of the first line. Covers every situation, and no new property required.

I'm a bit uncomfortable with this, as it's impossible for an author to know whether this extended functionality is supported or not; given that it's a fairly obscure case, and may involve some implementation complexity, it may be preferable to make it clearly distinct from the "normal" case where the `hyphenate-character` string simply appears before the break.

An alternative way to extend the property would be to allow an optional second value; if two strings are provided, then the first string (which could be empty) appears before the break, and the second string after the break. This allows for graceful degradation in the usual CSS way if the browser doesn't support the extended syntax.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 December 2021 13:29:45 UTC