Skip to content

[css-text-3] Allow first/last to hang colons (and dashes?) #2392

@fantasai

Description

@fantasai

In https://lists.w3.org/Archives/Public/www-style/2015Mar/0150.html @bradkemper wrote:

I would like the characters that can hang on the end of a line to include a colon. The use case is common when you have right aligned labels ending in a colon. It looks weird when the lines wrap and the last word doesn't line up with the other words.

Could colons be part of the hanging characters in 'hanging-punctuation: last'? Or could there be a new value, such as 'hanging-punctuation: last-loose', that hangs the characters in the [Po] category?

Background Info: The end value of hanging-punctuation is intended for CJK, and the first value, in conjunction with text-indent, was needed also for CJK https://www.w3.org/TR/jlreq/#positioning_of_opening_brackets_at_line_head But first in conjunction with last gives useful behavior for Western typesetting as well, such as for pull-quotes. The question here would be, does adding more punctuation to the hangable classes of last interfere with any existing use cases? If so, we need a new value. If not, we can fold it into last.

The other question is, which characters, specifically, need to hang like this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions