Closed Bug 1854462 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42003 - Fix 'currentcolor' handling for drop-shadow(...) filter functions

Categories

(Core :: Web Painting, 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 42003 into mozilla-central (this bug is closed when the sync is complete).

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

Fredrik Söderquist <fs@opera.com> wrote:

Fix 'currentcolor' handling for drop-shadow(...) filter functions

For drop-shadow(), the 'currentcolor' keyword was resolved at style
resolution time by FilterOperationResolver. This means that it was baked
into style, and couldn't respond to a change in color.

Instead preserve the keyword in the FilterOperation and let the
FilterEffectBuilder resolve the color if needed. Add infrastructure to
FilterOperation/s to determine if a filter chain depends on
'currentcolor' to allow invalidation of the filter chain when the color
changes.

Bug: 1469327
Change-Id: I81bd0324637f1c1111add5d74c58418f205c3c77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4863914
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Reviewed-by: Fernando Serboncini \<fserb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1199067}

Component: web-platform-tests → Web Painting
Product: Testing → Core

CI Results

Ran 9 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

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by csabou@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/3854d2b7978d [wpt PR 42003] - Fix 'currentcolor' handling for drop-shadow(...) filter functions, 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.