[wpt-sync] Sync PR 64232 - Allow animation-tainted var() in -internal-visited-* properties
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| 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}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Updated•25 days ago
|
| Assignee | ||
Updated•25 days ago
|
| Assignee | ||
Updated•24 days ago
|
| Assignee | ||
Updated•24 days ago
|
| Assignee | ||
Updated•23 days ago
|
| Assignee | ||
Comment 1•23 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=115783
| Assignee | ||
Comment 2•23 days ago
|
||
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
- /css/css-variables/revert-layer-in-fallback.html [wpt.fyi]
- var(--unknown, revert-layer) in custom property:
FAIL
- var(--unknown, revert-layer) in custom property:
- /css/css-variables/revert-rule-in-fallback.html [wpt.fyi]
- var(--unknown, revert-rule) in custom property:
FAIL
- var(--unknown, revert-rule) in custom property:
- /css/css-variables/variable-css-wide-keywords-after-substitution.html [wpt.fyi]
- CSS-wide keyword
revert-layerafter var() substitution:FAIL - revert-layer after var() substitution takes effect on the cascade:
FAIL
- CSS-wide keyword
- /css/css-variables/variable-css-wide-keywords.html [wpt.fyi]
revert-layeras avar()fallback for an unregistered custom property:FAILrevert-layeras avar()fallback for a non-inheriting registered custom property:FAILrevert-layeras avar()fallback for an inheriting registered custom property:FAIL
- /css/css-variables/variable-definition.html [wpt.fyi]
- white space value (single space):
FAIL - white space value (double space):
FAIL - can overwrite with no value:
FAIL - can overwrite with space value:
FAIL - white space value (single space) (Computed Style):
FAIL - white space value (double space) (Computed Style):
FAIL - can overwrite with no value (Computed Style):
FAIL - can overwrite with space value (Computed Style):
FAIL - white space value (single space) (Cascading):
FAIL - white space value (double space) (Cascading):
FAIL - can overwrite with no value (Cascading):
FAIL - can overwrite with space value (Cascading):
FAIL - CSSOM.setProperty with space 1:
FAIL - CSSOM.setProperty with space 2:
FAIL
- white space value (single space):
- /css/css-variables/variable-presentation-attribute.html [wpt.fyi]
- Testing 'clip' on '#test4'.:
FAIL[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],PASS[Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - Testing 'alignment-baseline'.:
FAIL - Testing 'baseline-shift'.:
FAIL - Testing 'color-interpolation-filters'.:
FAIL - Testing 'fill'.:
FAIL - Testing 'flood-color'.:
FAIL - Testing 'font-family'.:
FAIL - Testing 'glyph-orientation-vertical'.:
FAIL - Testing 'kerning'.:
FAIL - Testing 'lighting-color'.:
FAIL - Testing 'pointer-events'.:
FAIL - Testing 'stop-color'.:
FAIL - Testing 'stroke'.:
FAIL - Testing 'writing-mode'.:
FAIL
- Testing 'clip' on '#test4'.:
- /css/css-variables/variable-reference-name-substitution.html [wpt.fyi]
- var() name comes from if():
FAIL - var() name comes from random-item():
FAIL
- var() name comes from if():
- /css/css-variables/variable-reference.html [wpt.fyi]
- Variable reference left open at end of stylesheet:
FAIL
- Variable reference left open at end of stylesheet:
- /css/css-variables/variable-substitution-variable-declaration.html [wpt.fyi]
- target6 --varC:
FAIL
- target6 --varC:
- /css/css-variables/variable-animation-visited-link.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /css/css-variables/variable-external-font-face-01.html [wpt.fyi]:
FAIL[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-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-variables/variable-font-face-01.html [wpt.fyi]:
FAIL[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-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-variables/variable-font-face-02.html [wpt.fyi]:
FAIL[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-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-variables/vars-background-shorthand-001.html [wpt.fyi]:
FAIL
Comment 4•18 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/207244a769f9
https://hg.mozilla.org/mozilla-central/rev/1cd5cf7d7f35
Description
•