[wpt-sync] Sync PR 42737 - Paint background invalidation when a table column span changes
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox121 fixed)
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 42737 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/42737
Details from upstream follow.
Andreu Botella <abotella@igalia.com> wrote:
Paint background invalidation when a table column span changes
Although table column elements (
LayoutNGTableColumn
) are not laid
out, their background styles will affect the background of the table
columns they span. The set of table columns that a table column
element spans can change, which means the background of the table
might need to change when aLayoutNGTableColumn
's span changes.However, this is not currently happening because changing the span is
not invalidating the table background. This patch fixes that. As an
optimization, we invalidate the background only if some of the table's
LayoutNGTableColumn
have a CSS-specified background.For this optimization, however,
LayoutNGTable::HasBackgroundForPaint
cannot be used, because that will only take into account the
backgrounds of anyLayoutNGTableColumn
s that span actual columns.
It is possible for aLayoutNGTableColumn
that did not span any table
columns to suddenly do so if the span for some previous
LayoutNGTableColumn
is decreased. Therefore, we added a new
LayoutNGTable::HasColumnsWithBackground
method that checks every
LayoutNGTableColumn
.Bug: 1373252
Change-Id: I05edf22e5709ce33c574dfbe5f4f1c0da62f3a38
Reviewed-on: https://chromium-review.googlesource.com/4974436
WPT-Export-Revision: cef97701a31d9d7ce39666392892e00c8e5c15b6
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests
Status Summary
Firefox
PASS
: 2
Chrome
FAIL
: 2
Safari
FAIL
: 2
Links
Comment 5•2 years ago
|
||
bugherder |
Description
•