[csswg-drafts] [css-text-4] [text-autospace] Spacing across element boundaries for BiDi content (#10803)

vitorroriz has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-4] [text-autospace] Spacing across element boundaries for BiDi content ==
[Spec](https://www.w3.org/TR/css-text-4/#text-autospace-property) says:

> At element boundaries, the amount of extra spacing introduced between characters is determined by and rendered within the innermost element that contains the boundary.

We need to calculate such spacing before line-breaking as the extra spaces between relevant elements affect the available space for composing a line. At this point visual re-ordering hasn't occurred and ordering is considered logical (we process text in the order it is stored).

After layout, for actually displaying text, if content requires visual re-ordering due to BiDi content, what should the engine do regarding the extra spaces?

1. We could re-compute spacing based on the potential new visual order, but this won't match the spacing computed during layout, generating a mismatch between "layout" and "display".
2. We can try to re-use the spacing computed in layout, but that is still "wrong" as we might be adding spacing between characters that are no longer adjacent and missing spacing between characters that are now adjacent.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10803 using your GitHub account


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

Received on Thursday, 29 August 2024 19:53:49 UTC