Status Update
Comments
fl...@chromium.org <fl...@chromium.org>
ja...@chromium.org <ja...@chromium.org> #2
Thanks for finding this! FYI I won't be able to prioritize working on this for a bit.
br...@chromium.org <br...@chromium.org> #3
Came to the same realization in
Demo:
Works in Safari and Firefox (although Firefox doesn’t correctly invalidate the styles on :hover
there, but that’s a separate bug form them).
Workaround for Chrome is to use the variables as the value for content
, and respond to content
transitioning. See this demo (which only works in Chrome):
br...@chromium.org <br...@chromium.org> #4
While digging into this, @property
makes Chrome trigger the transition on custom properties.
Looking at the Blink source, it’s because css_animations.cc
if (property.IsCSSCustomProperty()) {
if (!registry || !registry->Registration(property.CustomPropertyName())) {
return;
}
}
However, this workaround is currently not recommended for authors to do as
Description
E.g. to repro,
1. Load
2. Hover over the custom property box. Note that the property change is immediate and no transition is logged in the log box on the right.