Re: [css-text][css-conditional] language specific support for hyphenation and justification

> On 18 Jun 2015, at 12:19, Andrew Cunningham <lang.support@gmail.com> wrote:
> 
> Florian,
> On 16 Jun 2015 10:25 pm, "Florian Rivoal" <florian@rivoal.net <mailto:florian@rivoal.net>> wrote:
> >
> 
> >
> > Problem 2 can be handled by authors using :lang() selectors, so it is less of an issue. However, for stylesheets meant to be used over an open ended set of languages, being exhaustive is really tedious, and authors are unlikely to have the linguistic knowledge to do this properly.
> >
> 
> I would argue that if you are developing a stylesheet to be used over an open ended set of languages, there is no point using hyphenation. Such stylesheets will be suboptimal for many languages and will most likely fail for some languages.
> 

Wouldn't something like that be fine?

p {
  text-align: left;
}
p:supports-hyphenation {
  hypens: auto;
  text-align: justify;
}
p:not(:supports-hyphenation):nice-justification {
  text-align: justify;
}


 - Florian

Received on Thursday, 18 June 2015 11:07:59 UTC