Closed Bug 2076739 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63094 - [blink] Recalc colors derived from parent color

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Free Debreuil <freedebreuil@google.com> wrote:

[blink] Recalc colors derived from parent color

Element::PropagateInheritedProperties (the independent inheritance fast
path) either kept an element's color or copied its parent's computed
color. Colors resolved from the parent's color were therefore not
updated when only the parent's color changed:

  • color-mix(), relative colors or other color functions using
    currentColor in the color property, which Color::ApplyValue resolves
    against the parent's color.
  • forced-color-adjust: preserve-parent-color, which inherits the
    parent's used (possibly forced) color rather than its computed color.

Mark these elements with ColorIsDerivedFromParent and skip the fast path
for them; their plain descendants still use it. Every Color apply
function sets the flag, since incremental style starts from a copy of
the old style.

Bug: 492536576
Change-Id: Ia0a0736416bf1c7edc3d50df9bc6ce0df5606190
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8484577
Auto-Submit: Free Debreuil \<freedebreuil@google.com>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1707915}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 388 tests

Status Summary

Firefox

OK : 1[GitHub] 67[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 11659[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 11965[Gecko-linux2404-64-opt] 11966[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug] 11967[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1018[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1028[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1029[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug] 1030[Gecko-linux2404-64-opt]

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: