Re: [csswg-drafts] [css-break-4] orphans and widows for fragmented monolithic replaced elements (#3405)

With `<length>` (and conversion from `<number>` to `<length>` via the `line-height`) `orphans` and `widows` could be applied to any block container, preventing breaks inside those areas.

So, while the combination of `<number>` and inline formatting context would still count actual line boxes, any other combination would use the used `<length>` as the height of the area in which breaks are prohibited.

This would, for example, cover sections/chapters that should not start in the bottom 7cm of a page. A use case for which our customers currently require JavaScript. 

`<percentage>` values would also be useful, when resolved against the height of the fragment container (or to `0` if that height is not definite).

The precision of the used `<length>` should not be limited to multiples of `line-height`. If that is required the `lh` unit can be used.

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


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

Received on Tuesday, 29 September 2020 15:38:37 UTC