Re: [csswg-drafts] [css-text-4] Allow for paragraph-level line breaking

I'm trying to get my head around where/when/if `text-wrap` interacts with `text-align` and `text-justify`, and hyphenation for that matter. Let's say a browser is capable of implementing something like Knuth–Plass multi-line justification, my understanding of the proposal is that I'd need to do this:

```
p {
   text-align: justify;
   text-wrap: multi-line;
}
```

Because line breaking and multi-line justification methods are inherently linked, I turn on justification with `text-align` but request the method using `text-wrap`. 

That said `text-justify` is available to say whether the justification method separates words only or can also separate characters. The `text-justify` spec as written also goes on to say:

> The guidelines in this level of CSS do not describe a complete justification algorithm. They are merely a minimum set of requirements that a complete algorithm should meet. Limiting the set of requirements gives UAs some latitude in choosing a justification algorithm that meets their needs and desired balance of quality, speed, and complexity.

...which to my mind implies that `text-justify` could be expected to specify the justification (and hence) line breaking algorithm in the future.

I think what I'm trying to ask is: should `text-wrap` affect the way text is justified? If so, this implies that `text-wrap` determines the justification algorithm (perhaps in conflict with `text-justify`).

-- 
GitHub Notification of comment by clagnut
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/672#issuecomment-380090895 using your GitHub account

Received on Tuesday, 10 April 2018 13:05:16 UTC