On 3/2/23 17:48, Tab Atkins Jr. wrote:
On Tue, Feb 28, 2023 at 9:06 PM fantasai <fantasai.li...@inkedblade.net> wrote:
I don't think this should ship until the relationship between white-space and 
text-wrap is fully resolved and implemented. That just seems like a bad idea. I 
don't think it will be difficult or time consuming, but I think it needs to be 
done.

I don't understand what issues you might be thinking of. white-space
has effects on wrapping, yes, but text-wrap:balance is just using the
wrapping algorithm, *whatever* it is, and choosing different wrap
opportunities (as if the box was slightly narrower, generally) than it
would otherwise have.

If you think there are specific issues that need to be fixed (that
don't equally need to be fixed for text-wrap:wrap), could you list
them?

The 'text-wrap' property is a longhand of 'white-space'. If you don't implement it as such, the way that 'text-wrap' and 'white-space' declarations override each other will change if/when you do.

This intent to ship just says that you will ship 'text-wrap'. It doesn't say that you will also implement 'white-space-collapse' (the other longhand of 'white-space') or the shorthanding relationship between 'text-wrap' and 'white-space'. I therefore assume you're shipping 'text-wrap' as an independent property, and this is not going to be spec-compatible.

Lastly, there had been some discussion about more control over the length of the last line, having it be not just 
"anything" or "same as the rest of the paragraph" but things like "at least 4em" or 
"at least 15% of a full line". Doing something like that would split this control into its own independent 
property, rather than being a keyword on `text-wrap`. Has there been any investigation in that direction? Are we sure 
we don't want to go there?

We probably do want some type of control for orphan words, but it's an
unrelated problem; *all* of the text-wrap options can want it. Likely
it belongs in its own property.

How is (a hypothetical) 'last-line-length: 100%' different from 'text-wrap: balance'? If they're the same, does it make sense to have 'text-wrap: balance'?

~fantasai

--
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/e7a81f59-27b3-dd36-9a62-680af4850cb7%40inkedblade.net.

Reply via email to