Skip to content

[css-text] trim-both and trim-start #13779

@xfq

Description

@xfq

https://drafts.csswg.org/css-text-4/#text-spacing-trim-property

Recently, while discussing text-spacing-trim in CSS, the clreq TF felt that trim-both and trim-start are quite similar.

The behavior of trim-start in certain cases appears to be counter-intuitive. For instance, if there isn't enough space remaining at the end of a line, the content might be pushed to the next line. This could trigger a line-breaking rule (such as preventing a closing quotation mark from appearing at the start of a line).

And there is a high probability that three full-width characters would be pulled down to the next line (since a paragraph ending with a closing quotation mark typically includes a sentence-ending punctuation mark immediately preceding the quotation mark).

Is there any specific scenario where trim-start is absolutely essential?

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions