Re: [csswg-drafts] [css-text] Should text-wrap-style:balance be allowed to affect the block height? (#10186)

Maybe the number of lines is all that matters? I thought -- perhaps wrongly -- that the idea was to ensure the effect of `balance` is confined to the content within the block, and won't affect layout outside it (so authors can request it in the knowledge that whether or not it's supported, and regardless of the exact algorithm the browser may use, it won't cause other things on the page to shift or break).

I'd be interested to know what other people think about this.

(For the record, I did just recently make a change in Gecko's implementation that ensures the intrinsic size of the block does not change. But maybe that's a stricter requirement than we actually want? Here's what the latest Firefox Nightly does with the codepen example:

<img width="501" alt="image" src="https://github.com/w3c/csswg-drafts/assets/1706499/ed37ff69-897f-4cbe-9618-e931cc72660f">

whereas before the most recent change, it gave the same result as the Chrome screenshot above.)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 April 2024 22:10:59 UTC