W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

[csswg-drafts] Prevent line break after hyphen preceded by space (#3463)

From: Valtteri Laitinen via GitHub <sysbot+gh@w3.org>
Date: Thu, 20 Dec 2018 08:27:12 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-392937940-1545294431-sysbot+gh@w3.org>
valtlai has just created a new issue for https://github.com/w3c/csswg-drafts:

== Prevent line break after hyphen preceded by space ==
I want to prevent a line break after a hyphen which is preceded by a space.

So a string like
```
foo bar -baz
```
can be broken as
```
foo bar
-baz
```
but not
```
foo bar -
baz
```

I’m not sure if this can be solved by CSS spec (e.g., a new keyword for `hyphens` or `overflow-wrap`, etc.) or if it’s a browser bug: Firefox does like described by default, Chrome doesn’t.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3463 using your GitHub account
Received on Thursday, 20 December 2018 08:27:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC