DescriptionRequire spanners to have the multicol container as their nearest block formatting context.
The editor's draft [1] suggests that a column-span:all object needs to be in
the same block formatting context, so disallow column-span for everything else.
MSIE does the same. Gecko doesn't support spanners.
While this simplifies the code and gives us less to worry about (and it
actually fixes bug 529737, although that wasn't my main motivation here),
another reason to make this change is that we'd get assertion failures if we
put a spanner inside a scrollable flex item inside a flexbox inside a multicol
inside another flexbox. The reason why the assertion failures happen is the
LayoutBlock::finishDelayUpdateScrollInfo() mechanism, which may jump to some
arbitrary block in the subtree and lay it out directly. While that is bad on
its own, the multicol implementation should now at least be immune to damage
caused by that.
Removed some old tests that are now invalid, because they expected spanners to
be created inside scrollable containers. This no longer works, because
non-visible overflow implies a new block formatting context.
[1] https://drafts.csswg.org/css-multicol/#column-span
BUG=529737
R=leviw@chromium.org
Committed: https://crrev.com/7b65998a89f974e7c7f5dfce4f4eae7fa69b421d
Cr-Commit-Position: refs/heads/master@{#356680}
Patch Set 1 #Patch Set 2 : Add test for bug 529737 #Messages
Total messages: 11 (4 generated)
|