W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

[csswg-drafts] [css-text-4] Hyphenate only overflowing words?

From: George Gooding via GitHub <sysbot+gh@w3.org>
Date: Tue, 18 Oct 2016 15:41:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-183724762-1476805294-sysbot+gh@w3.org>
Nettsentrisk has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-text-4] Hyphenate only overflowing words? ==
As far as I understand the spec, there is currently no proposed way of
 allowing a CSS author to only hyphenate words that overflow their 
container, instead of all words that cross the container edge.

This is especially an issue with headings, as an author may want to 
avoid excessive hyphenation in a larger heading text if possible.

The current implementations based on the spec will hyphenate every 
word that crosses the container edge opposite of what is set with the 
text-align property.

Relevant part of the spec: 
https://drafts.csswg.org/css-text-3/#hyphens-property

An example: 
http://codepen.io/Nettsentrisk/pen/wzYAbo

Blog post describing the problem: 
https://www.epinova.no/en/blog/css-hyphenate-only-overflowing-words/


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/616 using your GitHub 
account
Received on Tuesday, 18 October 2016 15:41:44 UTC

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