-
Notifications
You must be signed in to change notification settings - Fork 719
[css-break] Clarify definition of widow and orphans. #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
css-break-3
Current Work
Comments
The Working Group just discussed
The full IRC log of that discussion |
Spec PR: #1864 |
fantasai
added a commit
that referenced
this issue
Aug 23, 2018
…apply to block containers that directly contain line boxes (only)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The section on orphans, widows in css-break says this:
While it is clear to me what this is supposed to do if the block container only contains inline-level content, the meaning is less obvious when it has block level descendants.
Take this example:
https://www.w3.org/TR/css-display-3/#block-container is pretty clear that block containers can either contain online inline-level boxes or block level boxes, but the terminology isn't 100% clear (as far as I can tell) about whether a block container that contains block level elements can still be said to have "line boxes in it” (indirectly, via its block level children that themselves are block containers containing inlines), or if it should be considered not to have "line boxes in it”.
widows:3
forbids breaks inside both, but does not prevent breaks between line 2 and 3:
The block has no (direct) lines, there's nothing to keep together, and the break is allowed.
I think the spec intends the first one. If that is the case, I suggest clarifying by changing the "Applies to" line to "Block container boxes that establish new inline formatting contexts" and/or by adding the following prose: “The
widows
andorphan
properties have no effect on block container boxes that contains only block-level boxes”.The text was updated successfully, but these errors were encountered: