Re: [csswg-drafts] [css-text] Clarification about hanging spaces and max-content size (#4359)

In this case, the ` ` is at the end of the div, so it is before a forced like break (https://drafts.csswg.org/css-text-3/#forced-line-break). In that case, as you quoted, “**it must conditionally hang the sequence is instead**”.

Conditionally hanging is at https://drafts.csswg.org/css-text-3/#conditionally-hang, two paragraphs after https://drafts.csswg.org/css-text-3/#hang (which is the one you quoted). It says:
>  Glyphs that conditionally hang are not taken into account when computing min-content sizes and any sizes derived thereof, but they are taken into account for max-content sizes and any sizes derived thereof. 

So, in this case, the space is taken into account for max-content, the size of the div is 3 characters, and you see red.



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

Received on Tuesday, 24 September 2019 05:49:09 UTC