W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-text][css-text-4] Add a property to define when to stop trying to justify a line

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Fri, 14 Apr 2017 21:11:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-294237553-1492204277-sysbot+gh@w3.org>
@astearns That is an issue. 

But it's less of an issue if you have extra blank space between paragraphs.  Then it just looks like a forced line break in the same paragraph.

Like:

```
The scaling of pattern  tiles is deter-
mined by two attributes.

There   are   two   options   for   the 
patternContentUnits attribute: 
userSpaceOnUse   ( the   default )   or
objectBoundingBox.

The same options are  available for the
patternUnits attribute, but the default
is objectBoundingBox.
```

It's not beautiful, but it's better.
Currently, our approach is "add some extra words or re-arrange the sentence until the justification isn't atrocious". But that only works for the print version, not for re-flowable media like ePub.

Another option would be to use the limit as a point to switch from inter-word to inter-character justification.  I think some text layout tools essentially do that in their auto justification, anyway.  That would need a more complicated value syntax, or new options for the `text-justify` property.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1221#issuecomment-294237553 using your GitHub account
Received on Friday, 14 April 2017 21:11:25 UTC

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