gecko-dev/testing/web-platform/tests/css/css-multicol/multicol-span-all-010-ref.html
Ting-Yu Lin 24f636a92f Bug 1516739 - Stop reparenting absolute/fixed positioned blocks when constructing multicol container. r=dbaron
The crash happens when we try to reparent the absolute/fixed
positioned children to the non-column-span wrapper's absolute list.

When constructing the multicol container, we want it to be the
absolute/fixed position container, not the moz-column-content anonymous
blocks. Hence the modification in AppendFramesToParent() and
ConstructBlock().

Delete AdjustAbsoluteContainingBlock() because we'd like to reparent
absolute/fixed children to non-first continuation of block descendant of
multicol. And it doesn't crash anymore today.

Differential Revision: https://phabricator.services.mozilla.com/D16728

--HG--
extra : moz-landing-system : lando
2019-01-25 07:09:17 +00:00

34 lines
843 B
HTML

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Multi-column Layout Test Reference: Test the position of the out-of-flow block is relative to the fragment divided by column-span:all</title>
<link rel="author" title="Ting-Yu Lin" href="tlin@mozilla.com">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<style>
body {
column-count: 1;
column-rule: 6px solid;
width: 400px;
outline: 1px solid black;
}
h3 {
/* "column-count: 1" makes this behave like a real spanner. */
outline: 1px solid blue;
}
.out-of-flow {
position: absolute;
top: 0;
left: 0;
}
</style>
<body>
<article id="column">
<h3>spanner</h3>
<div style="transform: scale(1)">
<div class="out-of-flow">out-of-flow</div>
</div>
</article>
</body>
</html>