DescriptionDon't break before a first in-flow block container.
There's no break opportunity there, but break-inside:avoid used to trick us
into inserting a break there anyway in some cases.
As part of this work, we need allowsPaginationStrut() to check better if a
strut is allowed, or it might just end up getting eaten and forgotten about by
a first in-flow block further up in the tree. This matters for monolithic
content [1], such as lines and image blocks. We should never break inside
those, so allow breaking before them, even if they are the first piece of
content inside some block (just like we did before this change).
break-before-first-line-in-first-child.html and image-block-as-first-child.html
test that we don't regress in this regard.
Also removed a FIXME about checking for sufficient height. This would be
incorrect to fix. If there's no break point here, we have to propagate the
strut, if we're allowed to.
Had to update some tests, and even rename one, because they relied on the old
buggy behavior.
[1] https://drafts.csswg.org/css-break-3/#possible-breaks
BUG=653690
Committed: https://crrev.com/256093e6ead7db6f7269d8af50a82906891f0caf
Cr-Commit-Position: refs/heads/master@{#423926}
Patch Set 1 #Messages
Total messages: 12 (7 generated)
|