forked from mirrors/gecko-dev
Automatic update from web-platform-tests [layout] Don't freeze OOF-positioned scrollbars within flex layout. Change: https://chromium-review.googlesource.com/c/chromium/src/+/2424899 ... introdcued a fix for freeze more consistent scrollbars for arbitrary descendants of flex layout. However the original code (detected direct descendant scrollbar changes) contained an issue that it would also freeze scrollbars for any OOF positioned children. There exists a wider issue which I've detailed here: https://bugs.chromium.org/p/chromium/issues/detail?id=1148835 But it's relative rare. The fix for this specific regression is to unfreeze the scrollbars before running the OOF layout part. Bug: 1148288 Change-Id: I74be0bf141d13988548d38412e912c8c98d628b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538041 Reviewed-by: David Grogan <dgrogan@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#827402} -- wpt-commits: 39f5f691a2f6dc04e6d34cf8cc2c7b8c07967b8d wpt-pr: 26531
16 lines
669 B
HTML
16 lines
669 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1148288">
|
|
<link rel="match" href="position-absolute-scrollbar-freeze-ref.html">
|
|
<div style="display: flex; position: relative;">
|
|
<div style="display: flex;">
|
|
<div id="target1" style="width: 0px;">text</div>
|
|
</div>
|
|
<div id="target2" style="position: absolute; overflow: auto; top: 0; left: 0; width: 100px; max-height: 100px; display: none;">
|
|
<div style="height: 200px; background: green;"></div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
document.body.offsetTop;
|
|
document.getElementById('target1').innerText = '';
|
|
document.getElementById('target2').style.display = '';
|
|
</script>
|