- From: Rob Mayer via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Aug 2024 23:32:00 +0000
- To: public-css-archive@w3.org
RobMayer has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-page-3] - looking for clarification of interaction of differing "page" properties and "break-after: avoid-page" for chapterhead pages == I'm looking for clarification on how these two properties interact. I think there may be a gap in functionality when it comes to page layout design. for example, suppose I have this html and css ```html <main> <h2>Chapter Title</h2> <p>Enough content to fill 2.5 pages</p> </main> ``` ```css @page typical { ...whatever } @page chapterhead { ...whatever } main { page: typical; } h2 { page: chapterhead; break-before: page; break-after: avoid-page; } ``` should this: - result in 4 pages [chapterhead, typical, typical, typical] where `<h2>` exists on its own page - result in 3 pages [chapterhead, typical, typical] where the first page is the `<h2>` and whatever amount of the `<p>` will fit on the rest of the "chapterhead" page and then run into the "typical" pages? - result in 5 pages: [typical, chapterhead, typical, typical, typical] where the first page is blank because Main starts on "typical" but the `h2` forces a break with "chapterhead" and the `<p>` flows back into typical because its the first non-auto in the hierarchy. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10716 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 August 2024 23:32:01 UTC