Re: [csswg-drafts] [css-overflow-4] [css-break] How does `widows` interact with `continue: discard`? (#9235)

And similarly for orphans, actually...

```html
<div style="continue: discard; height: 4lh; orphans:2; widows:1;">
  Line 1<br>
  Line 2<br>
  Line 3<br>
  <div>
    Line 4<br>
    Line 5
  </div>
</div>
```

I agree that it's somewhat surprising for orphans and widows to have an effect here. By the way, Chromium has received numerous bug reports over the years on orphans / widows being honored at all in multicol, especially with tall 100% wide images or inline blocks where authors expect a perfect break opportunity between every line.

That said, as long as continue:discard is defined as establishing a fragmentation container, what else can we do?

Is continue:discard mostly a way of defining line-clamp [1], a shorthand? In that case, maybe just define that line-clamp != none as also setting orphans and widows to 1?

[1] https://www.w3.org/TR/css-overflow-4/#line-clamp

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


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

Received on Thursday, 24 August 2023 11:26:44 UTC