-webkit-hyphens #133

Closed
GoogleCodeExporter opened this Issue Mar 16, 2015 · 3 comments

Comments

Projects
None yet
1 participant
Webkit (the nightly build and Safari on iOS 4.2) has experimental support for 
the CSS3 Hyphenation Properties 
(http://www.w3.org/TR/2011/WD-css3-text-20110215/#hyphenation).

Hyphenator.js should take himself back, when these properties are set.

Original issue reported on code.google.com by mathiasn...@gmail.com on 8 Apr 2011 at 5:12

Some points to consider:

- In Webkit (nightly builds) hyphenation only occurs if the systems language is 
set to english. Words are hyphenated with english hyphenation rules.
- Webkit on iOS knows more hyphenation rules than just english. All text is 
hyphenated with the rules for the system language (lang-attributes are not 
respected).

-> On iOS we could set -webkit-hyphens for paragraphs to be hyphenated to save 
bandwith.
But there are restrictions (see above):
- only use this if the language of the text equals the language of the device 
(userLanguage?).
- webkits hyphenation may differ from Hyphenators hyphenation.






Original comment by mathiasn...@gmail.com on 9 May 2011 at 5:58

Still working on it.

Safari 5.1 preview has -webkit-hyphens implemented, but still for english 
only…
I already filed a bug to apple (and to the webkit-team).

By using -webkit-locale I can define the language on iOS.

Thus I have to do a decision based on UserAgent String (don't like).

Original comment by mathiasn...@gmail.com on 8 Jun 2011 at 10:51

-webkit-locale doesn't really work ;-(
So CSS3 is only used when lang is english.

It's in the trunk now  (r977)

Original comment by mathiasn...@gmail.com on 8 Jun 2011 at 10:29

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment