W3C home > Mailing lists > Public > public-html@w3.org > December 2012

Re: HTML 5.1 Use Cases

From: Lee Kowalkowski <lee.kowalkowski@googlemail.com>
Date: Wed, 19 Dec 2012 13:30:38 +0000
Message-ID: <CAGpS7GN-ddO9GP7KQ7=fCtkK==QN+9esz7rf1pWN8fqwyztHVw@mail.gmail.com>
To: "Thomas A. Fine" <fine@head.cfa.harvard.edu>
Cc: public-html <public-html@w3.org>
On 17 December 2012 18:55, Thomas A. Fine <fine@head.cfa.harvard.edu> wrote:

> But it doesn't work because:
>   * Using spans with CSS and the word-spacing parameter solves the
> justification problems but it inverts the expected CSS hierarcy for
> controlling layout, setting the word-spacing to the sentence size as a more
> global value and overriding it locally for every single contained element
> to set the word-spacing back to what is actually desired for word spacing.

I don't see how that's too bad:

p {word-spacing:.5em}
.sentence {word-spacing:.1em}

(Although "sentence-spacing" would be more meaningful.)

I think the temptation may be to author this construct with no whitespace
between sentences, like this:
 Then it doesn't work.

As this technique would require the author to enter whitespace between
sentence elements, I'm not sure it's the best approach, the new element
would have to ensure the whitespace is implicit if it's not been explicitly

I think the technique not mentioned yet is to preserve whitespace via CSS:

p {white-space:pre-wrap;}

For any typical developer/author, this would be easiest because they just
need to enter additional space between sentences, if that's what they

Received on Wednesday, 19 December 2012 13:31:09 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:29 UTC