Skip to content

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

Open
@vitorroriz

Description

@vitorroriz

Spec 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs EditsNeeds Example or Figurecss-text-4i18n-clreqChinese language enablementi18n-jlreqJapanese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    Status

    Oldest unslotted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions