mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1583577
[wpt PR 19257] - [LayoutNG] Clear layout results when the layout wasn't successful., a=testonly
Automatic update from web-platform-tests [LayoutNG] Clear layout results when the layout wasn't successful. Today we can end up in a state where the layout result cache for a LayoutBox contains a fragment tree which doesn't match the layout tree state. This occurs when we "abort" layout, i.e. 1) during the first pass children are positioned at a particular offset 2) a parent aborts layout due to resolving a BFC offset 3) the parent hits the layout result cache which has children at a different offset Bug: 1003558 Change-Id: Iabc5dfefd74c517222ec435cea376ad000a0372f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821674 Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#702507} -- wpt-commits: eac401e3df87f17e49b38ec2f935fd1177139e23 wpt-pr: 19257
This commit is contained in:
parent
6c4062337e
commit
db13c3bebb
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1003558">
|
||||
<style>
|
||||
#target {
|
||||
height: 50px;
|
||||
width: 0;
|
||||
background: green;
|
||||
float: right;
|
||||
}
|
||||
|
||||
span {
|
||||
float: left;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div style="display: flow-root; width: 100px; background: red;">
|
||||
<div id="target"></div>
|
||||
<div style="position: absolute; width: 50px; height: 50px; background: green;"></div>
|
||||
<div>
|
||||
<div style="clear: both; height: 10px;">
|
||||
<div>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.body.offsetTop;
|
||||
document.getElementById('target').style.width = '50px';
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user