forked from mirrors/gecko-dev
Automatic update from web-platform-tests Prepare for drawing non-scrolling background in contents space - Rename "ScrollingBackground" to "BackgroundInContentsSpace" where we can draw non-scrolling background in contents space. - Refactor NGBoxFragmentPainter to reduce duplicated code in multiple fragment painters. Bug: 1242241 Change-Id: Ieeccd5ac14742dc8c94e82d75d400b5581ec057a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3113227 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Aleks Totic <atotic@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/main@{#915420} -- wpt-commits: 3d1e4f96fd0e6b12e2370222943680546cb75b98 wpt-pr: 30158
12 lines
540 B
HTML
12 lines
540 B
HTML
<!DOCTYPE html>
|
|
<div style="width: 100px; height: 100px; border: solid;">
|
|
<div style="max-width: 100px; height: 100px; background: green; overflow-x: scroll;">
|
|
<div style="width: 120px; height: 50px; background: hotpink;"></div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div style="width: 100px; height: 100px; border: solid;">
|
|
<div style="display: table-cell; max-width: 100px; height: 100px; background: green; overflow-x: scroll; vertical-align: middle;">
|
|
<div style="width: 120px; height: 50px; background: hotpink;"></div>
|
|
</div>
|
|
</div>
|