mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
4aea2d2e09
The context->variables field is expected by the resolve code to be the keyframe variables. That code takes the style variables from context->style anyway, so no need to pass them as context->variables too. And crucially, the lookup code treats the keyframes variables differently to the style variables, since it doesn't expect the hierarchical structure that comes from parent styles. This change fixes infinite recursion in variable lookup with css like :root { --a: var(--b); } .foo { --b: var(--a); color: var(--a); } Test included. Fixes: #6881 |
||
---|---|---|
.. | ||
a11y | ||
css | ||
gdk | ||
gsk | ||
gtk | ||
headless | ||
introspection | ||
reftests | ||
tools | ||
meson.build | ||
testutils.c | ||
testutils.h |