diff --git a/gfx/webrender_bindings/src/bindings.rs b/gfx/webrender_bindings/src/bindings.rs index b23f3bb6e95d..4668b8c1ffe2 100644 --- a/gfx/webrender_bindings/src/bindings.rs +++ b/gfx/webrender_bindings/src/bindings.rs @@ -1144,7 +1144,9 @@ pub extern "C" fn wr_dp_push_stacking_context(state: &mut WrState, filters.push(FilterOp::Opacity(PropertyBinding::Value(*opacity))); } } else { - filters.push(FilterOp::Opacity(PropertyBinding::Binding(PropertyBindingKey::new(animation_id)))); + if animation_id > 0 { + filters.push(FilterOp::Opacity(PropertyBinding::Binding(PropertyBindingKey::new(animation_id)))); + } } let transform = unsafe { transform.as_ref() };