mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 1684554 [wpt PR 27019] - [LayoutNG] Fix OOF not painted in "tall" multicolumns, a=testonly
Automatic update from web-platform-tests [LayoutNG] Fix OOF not painted in "tall" multicolumns In some cases as the one described in https://crbug.com/1151383, non-fragmented OOF are not painted. The computed |offset_from_root| seems to be invalid and this CL fixes it. Bug: 1151383 Change-Id: Ib85440577442782a1f09f704d2224214d4822232 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2607670 Commit-Queue: Benjamin Beaudry <benjamin.beaudry@microsoft.com> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#841740} -- wpt-commits: 1affd0458528e1ccde884f4e4c942da7d056856b wpt-pr: 27019
This commit is contained in:
parent
d4218127ef
commit
149a35615c
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<style>
|
||||
div {
|
||||
height: 300px;
|
||||
width: 300px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div></div>
|
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">
|
||||
<!-- This test requires a 300px tall multicolumn to reproduce the issue. -->
|
||||
<link rel="match" href="out-of-flow-in-multicolumn-014-ref.html">
|
||||
<!-- Fragmented OOF element with block-size percentage resolution and overflow. -->
|
||||
<style>
|
||||
#multicol {
|
||||
columns: 2;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
column-fill: auto;
|
||||
column-gap: 0px;
|
||||
background-color: red;
|
||||
}
|
||||
.rel {
|
||||
position: relative;
|
||||
}
|
||||
.abs {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="multicol">
|
||||
<div style="width: 150px; height: 450px; background-color: green;"></div>
|
||||
<div class="rel">
|
||||
<div class="abs"></div>
|
||||
</div>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user