gecko-dev/testing/web-platform/tests/css/css-backgrounds/table-cell-background-local-ref.html
Xianzhu Wang 48c9f2e6c4 Bug 1523562 [wpt PR 14788] - [CompositeAfterPaint/PE] Fix scrolling background painting of table cells, a=testonly
Automatic update from web-platform-tests
[CompositeAfterPaint/PE] Fix scrolling background painting of table cells

When painting the scrolling background of a table cell, we need the
same logic in BoxPainter::PaintBoxDecorationBackground() for special
display item client, paint rect and paint state.

We can't merge PaintBoxDecorationBackground() for now for BoxPainter
and TableCellPainter because table cell needs a special clip to prevent
the background from covering the border e.g. when the table cell is
painted on a seperate composited layer. We can merge them when we remove
pre-CompositeAfterPaint code path.

Bug: 524134
Change-Id: I94b891bca86ae4ddd9e689e38114e70c0e8acb51
Reviewed-on: https://chromium-review.googlesource.com/c/1401432
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621486}

--

wpt-commits: 2012b25f21052f2afb9df59662b7acd5b5dc8e76
wpt-pr: 14788
2019-02-07 21:50:04 +00:00

12 lines
369 B
HTML

<!DOCTYPE html>
Passes if there is a brown square.
<div id="target"
style="overflow: hidden; width: 100px; height: 100px;
background: linear-gradient(to bottom right, green, red);
background-attachment: local">
<div style="width: 3000px; height: 3000px"></div>
</div>
<script>
target.scrollTop = 1500;
target.scrollLeft = 1500;
</script>