On 6/21/23 10:51, Koji Ishii wrote:

https://docs.google.com/document/d/1jJFD8nAUuiUX6ArFZQqQo8yTsvg8IuAq7oFrNQxPeqI/edit?usp=sharing

>> Avoiding a short single word on the last line (typographic orphans) is one of the most visible advantages of the paragraph-level algorithm.

What does it mean to “avoid a short single word” in quantitative terms (and across languages)?

>> Following are the limitations as of ToT/WIP. The list may change in future.

Can you confirm that this table means that the “pretty” algorithm is disabled, rather than the feature listed being disabled in favor of “pretty”? :)

        Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None.

I'm also not aware of much in the way of spec changes that would introduce any compat problems, since the spec gives a *lot* of leeway to the UA for this feature; so I doubt changes would cause non-compliance.

Instead, the primary thing to analyze would ways in which Chrome's own interpretation creates compat or interop issues, or locks in browser behavior or Web-developer expectations that we may want to change later.

So I agree largely agree with Alan Stearns's comments, and in the context of those comments, I want to ask, if the primary goal is to avoid short last lines, is “text-wrap: pretty” the right approach, or should we be considering a proposal that allows more configuration?

For example, there have been in the past a proposals for a property like
  last-line-length: <length-percentage>
which is discussed in the issue you linked to:
  https://github.com/w3c/csswg-drafts/issues/3473

Note that “text-wrap: pretty” was originally intended to apply better line-breaking throughout the paragraph, not so much to control the length of the last line.

~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/5192575b-2cf8-0727-fef3-718b6bb6552a%40inkedblade.net.

Reply via email to