Created attachment 423412 [details] An HTML file with two one-line paragraphs of text containing leading and trailing whitespace. According to https://www.w3.org/TR/css-text-3/#collapse: > If white-space is set to pre, pre-wrap, or break-spaces, any sequence of spaces is treated as a sequence of non-breaking spaces. This seems to be the case in Safari 14 for left-aligned paragraphs. But not But for for a text element with leading and trailing spaces, text renders like the following (with spaces represented as "_"): +---------------+ |__text__ | +---------------+ But right-aligned text renders like: +---------------+ | __text| +---------------+ where the trailing spaces are collapsed. Attached is an HTML file that demonstrates this.
<rdar://problem/75760533>
With the outline removed, IFC (modern line layout) renders the attached test case fine (atm the outline property forces us on the legacy codepath).
@Alan - since now IFC is default, is it something we can close? Or we are still falling back on legacy for this outline case?
(In reply to Ahmad Saleem from comment #3) > @Alan - since now IFC is default, is it something we can close? Or we are > still falling back on legacy for this outline case? There's no such thing as fallback anymore. This progressed with IFC "long" time ago.