DescriptionPrioritize first-lines over orphans when deciding whether to propagate a strut.
The orphans code piece simply blindly propagates the strut to the block if the
orphans requirement isn't satisfied. It's incapable of inserting a break at a
class C break point [1] (i.e. before the first line in the block), while the
first-line code piece handles this just fine (since this is easy to do when at
the first line, but not when at a later line).
If we're at a non-first line at the time of breaking, there's no support for
going back to insert a break before the first line. That has to be done when
processing the first line, not later on. Flip the priority, so that orphans
requirements aren't even checked if we're at the first line. There's no need
then. We always try to avoid breaking before the first line anyway.
[1] https://drafts.csswg.org/css-break/#possible-breaks
Committed: https://crrev.com/26d004ea56c7db51b1dc19ba21670587604612d8
Cr-Commit-Position: refs/heads/master@{#388838}
Patch Set 1 #
Messages
Total messages: 11 (5 generated)
|