Closed Bug 2087576 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64232 - Allow animation-tainted var() in -internal-visited-* properties

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Sampath Samaraweera <sampath.samaraweera@codimite.com> wrote:

Allow animation-tainted var() in -internal-visited-* properties

On a visited link, color: var(--x) painted the inherited color
when --x came from an animation or transition. getComputedStyle()
reports the unvisited color, so it showed the correct value.

Animated custom property values are animation-tainted, and
CascadeResolver::AllowSubstitution() rejects tainted values in
animation-affecting properties. The generated set of
animation-affecting properties includes every -internal-* property,
so the -internal-visited-* properties rejected the substitution and
fell back to 'unset'.

AllowSubstitution() now checks a visited property's unvisited
counterpart instead. None of those counterparts are
animation-affecting, so visited properties accept the same values as
the unvisited ones. This reveals nothing new about visited state,
since animating 'color' directly already reaches the visited color.

The change is guarded by the VisitedAnimationTaintedSubstitution
runtime flag.

Fixed: 569257985
Change-Id: Ic06b69e8cc023ad6f4323b439aef6540e8f1d5ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8618433
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Kevin Ellis \<kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1727828}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 251 tests

Status Summary

Firefox

OK : 64
PASS: 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 560[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 737[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] 738[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 740[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 1[GitHub] 38[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 41[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 43[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 44[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]

Chrome

FAIL: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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