W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

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

From: Bernhard Fey via GitHub <sysbot+gh@w3.org>
Date: Tue, 29 Sep 2020 15:38:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-700790424-1601393914-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:17 UTC