Re: [csswg-drafts] [css-text] Prevent line breaking after explicit hyphens (#3434)

> technically the different outcome for normal and keep-all of the testcase in the first two instances is really a spec violation at this point (?).

That would be my view indeed. Not only does the spec say that with `keep-all` « implicit soft wrap opportunities between typographic letter units (or other typographic character units belonging to the NU, AL, AI, or ID Unicode line breaking classes [UAX14]) are suppressed », it also adds « Otherwise this option is equivalent to normal. »

Since hyphen neither is a typographic letter unit nor belongs to the NU, AL, AI, or ID classes, `keep-all` is not supposed to affect breaks around it.

(Layout engines have a fair bit of flexibility to decide where breaks are in general, and could for instead decide not to break at the hyphen in T-shirt or e-mail, while breaking at hyphens in longer words, but whether or not they break is supposed to be unaffected by `keep-all`).

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


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

Received on Wednesday, 4 June 2025 09:11:19 UTC