mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Automatic update from web-platform-tests[LayoutNG] Cannot re-use line box fragments when scrollbars change. Without this fix, 3 tests would fail with https://chromium-review.googlesource.com/c/chromium/src/+/1297367 : external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-paint-clip-004.html fast/overflow/image-selection-highlight.html scrollbars/overflow-scrollbar-combinations.html Change-Id: Iabd95ead6c96cd50f25e654dda6a7f041ac77af0 Reviewed-on: https://chromium-review.googlesource.com/c/1311926 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#604883} -- wpt-commits: 415f81733682e4307f2acbda8ff948b73f007ea4 wpt-pr: 13847
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
|
<link rel="help" href="https://www.w3.org/TR/CSS22/visufx.html#propdef-overflow">
|
|
<style>
|
|
/* Avoid auto scrollbars on the viewport, because that might trigger re-layout
|
|
(and thus hide bugs). */
|
|
body { overflow:hidden; }
|
|
|
|
.container { width:100px; }
|
|
</style>
|
|
<p>There should be a blue rectangle below, and possibly a scrollbar (depending
|
|
on OS / browser), that shouldn not obscure any parts of the rectangle. The
|
|
word "FAIL" should not be seen.</p>
|
|
<div class="container" style="overflow:auto; height:200px;">
|
|
<div id="child" style="display:inline-block; box-sizing:border-box; width:100%; height:100%; border:10px solid blue;"></div>
|
|
<br>FAIL
|
|
</div>
|
|
|
|
<div class="container" style="visibility:hidden; overflow:scroll;">
|
|
<div id="ref"></div>
|
|
</div>
|
|
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(()=> {
|
|
var child = document.getElementById("child");
|
|
assert_equals(child.offsetWidth, ref.offsetWidth);
|
|
}, "Auto scrollbar affects size of children");
|
|
</script>
|