Indeed "alpha(" is erroneous in -gtk-icon-filter. But interestingly, the
libadwaita-1 source code (our Ubuntu patch) gets it right:
image:disabled {
-gtk-icon-filter: opacity(var(--disabled-opacity));
}
and it's libsass that's incorrectly converting it to:
image:disabled { -gtk-icon-filter: alpha(var(--disabled-opacity)); }
because libsass does:
Signature alpha_sig = "alpha($color)";
Signature opacity_sig = "opacity($color)";
BUILT_IN(alpha)
{
String_Constant* ie_kwd = Cast<String_Constant>(env["$color"]);
if (ie_kwd) {
return SASS_MEMORY_NEW(String_Quoted, pstate, "alpha(" +
ie_kwd->value() + ")");
}
// CSS3 filter function overload: pass literal through directly
Number* amount = Cast<Number>(env["$color"]);
if (amount) {
return SASS_MEMORY_NEW(String_Quoted, pstate, "opacity(" +
amount->to_string(ctx.c_options) + ")");
}
return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->a());
}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141831
Title:
GTK/Adwaita CSS warnings
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libadwaita-1/+bug/2141831/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs