[csswg-drafts] [css-text] `hanging-punctuation: last` should be "conditionally hang" (#12433)

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

== [css-text] `hanging-punctuation: last` should be "conditionally hang" ==
Currently the [`hanging-punctuation`] property has 5 values. Among them, the 3 values `last`, `allow-end`, and `force-end` are for the line end. The `end` has `allow` and `force` variations, while the `last` has only 1 behavior.

The spec distinguishes the variations as below:
> `last`: ... [hangs](https://drafts.csswg.org/css-text-4/#hang).
> `force-end`: ...[hangs](https://drafts.csswg.org/css-text-4/#hang).
> `allow-end`: ...[conditionally hangs](https://drafts.csswg.org/css-text-4/#conditionally-hang).

I propose to change the `last` to "conditionally hang".

* [Safari shipped](https://caniuse.com/css-hanging-punctuation) this property in 2016. Its `last` behavior is "conditionally hang", according to a [jsbin test](https://jsbin.com/heluxos/edit?html,output).
* [This blog](https://chriscoyier.net/2023/11/27/the-hanging-punctuation-property-in-css/) indicates that the author expect the "conditionally hang" behavior for the `last`.

/cc @fantasai @frivoal @nt1m @Clqsin45 @bfgeek

[`hanging-punctuation`]: https://drafts.csswg.org/css-text-4/#hanging-punctuation-property

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


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

Received on Wednesday, 2 July 2025 08:09:15 UTC