Re: [csswg-drafts] [css-page-3] clarification on whether "page" applies to (and propagates up from) "only-child" block-level elements (#7235)

Concrete example: should there be a page break here or not?
```html
<div style="page: a">
  <div style="page: b">Nested</div>
</div>

<div style="page: b">Last</div>
```

* By my reading, the spec says that `page: b` **does not apply** to the "Nested" div, because that div **does not create class A breakpoints** (because it has no siblings and hence cannot create any such breakpoints).
* So, that would mean that this div does not propagate its start/end page value to its parent; so its parent uses its own used value of `page` which is `a` as its start/end values.
* So, that would mean there should be a page break between the two outer divs (because the first one has a end-page value of "a" and the last one has start-page-value of "b").
* So, "Nested" and "Last" should be on different pages.

However, Chromium's implementation disagrees with my expectation, and they put all of the content on a single page.

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


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

Received on Tuesday, 26 April 2022 23:39:59 UTC