[css-text-3] line breaking rules around replaced-inline content incorrectly refer to ID class #3085
Labels
Closed Rejected as Wontfix by CSSWG Resolution
Commenter Response Pending
css-text-3
Current Work
Testing Unnecessary
Memory aid - issue doesn't require tests
Tracked in DoC
Section 5.1 of css-text-3 says:
I'm not sure this is correct, for several reasons.
First, the next paragraph defines the behaviour of word-break: keep-all as:
Which seems to imply that the soft-break opportunties are identical between "a国b" and "a[IMG]b", and that they can be prevented by setting "word-break: keep all".
Second, the line-breaking rules for ID class characters in UAX#14 do not match current browser behaviour even with word-break: normal. UAX#14 rule LB23a disallows a word-break between a numeric prefix (eg U+002C, plus sign) and an ideograph, but clearly the intention in CSS is not to disallow a soft wrap between a plus sign and a replaced inline.
The UAX#14 algorithm refers the object-replacement character, and explicitly states that this character is used to represent inline-objects in its algorithm. The behaviour of this approach seems to match current browser behaviour. So I think this bullet-point in 5.1 should be altered to:
Or something along those lines. The phrase "unresolved CB" is from UAX#14.
Related: #2559, #567
The text was updated successfully, but these errors were encountered: