fune/testing/web-platform/tests/css/css-tables/table-cell-overflow-auto-scrolled.html
Xianzhu Wang 17d4827a89 Bug 1727381 [wpt PR 30158] - Prepare for drawing non-scrolling background in contents space, a=testonly
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
2021-09-02 10:30:38 +00:00

16 lines
663 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#bounding-box-assignment">
<link rel="match" href="table-cell-overflow-auto-scrolled-ref.html">
<meta name="assert" content="Table cell with overflow:auto and overflowing contents is scrollable">
<table style="table-layout: fixed; width: 100px; height: 100px; border: solid; border-spacing: 0">
<tr>
<td id="cell" style="background: green; overflow: auto; vertical-align: top; padding: 0">
<div style="width: 200px; height: 50px; background: hotpink; border: 2px solid yellow"></div>
</td>
</tr>
</table>
<script>
onload = () => {
cell.scrollLeft = 120;
}
</script>