Closed Bug 1856487 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42217 - Paint background invalidation when deleting the last element of TableRow

Categories

(Core :: Layout: Tables, task, P4)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 42217 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/42217
Details from upstream follow.

shaochenguang <chenguangshao1@gmail.com> wrote:

Paint background invalidation when deleting the last element of TableRow

When the last element in a TableRow is deleted, it does not trigger
a redraw of the background,causing the background to persist.
After removing the last element of a row in a Table,
the size of the TableRow remains unchanged because it does not affect
the layout of the preceding elements.
Therefore, caching is used during rendering.
We should proactively trigger a redraw of this row when deleting
the last element of a table row.

Bug: 1487554
Change-Id: Ia45f5abf8ccd54781e8f0c1de04aebfa5cad552c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4900123
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Commit-Queue: Xianzhu Wang \<wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1204290}

Component: web-platform-tests → Layout: Tables
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4529ae5e3a5e [wpt PR 42217] - Paint background invalidation when deleting the last element of TableRow, a=testonly
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/bbd9bc9a8e1a [wpt PR 42217] - Paint background invalidation when deleting the last element of TableRow, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.