- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 03 Oct 2023 02:59:10 +0000
- To: public-css-archive@w3.org
I am unconvinced about decomposing `balance` or `pretty` into a bunch of individual knobs. The interaction between these knobs is about as interesting as the knobs themselves: if pretty implies "avoid orphans" and "avoid rivers" and "avoid several hyphenated lines in a row", do we then need not just these three, but also a choice between "avoid orphans unless it would create rivers" vs "avoid orphans even if it creates rivers"? "how about avoid orphans even if it creates rivers or consecutive lines with hyphenations, as long as it doesn't create both, but either way, don't be more than 250% percent slower than brute force line breaking"? A good algorithm for `pretty` needs to balance a whole bunch of tradeoffs. Yes, there's some measure of subjectivity in those tradeoffs, so providing author control is tempting, but: * designing the right knobs to enable meaningful choices without being overwhelming seems challenging * the existence of specific knobs will constrain what the underlying algorithm can possibly be. * depending on the specific knobs we come up with, it seems fairly likely that some combinations that aren't actually desired by anyone will become possible to express, causing unnecessary complexity in implementations. -- GitHub Notification of comment by frivoal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3473#issuecomment-1744086855 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 3 October 2023 02:59:12 UTC