From 1aef82f8063d5c82f013df12b576954601b96465 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Wed, 26 Jun 2019 23:02:16 +0000 Subject: [PATCH] style: Parse backdrop-filter CSS property. Differential Revision: https://phabricator.services.mozilla.com/D35816 --- .../style/properties/longhands/effects.mako.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/style/properties/longhands/effects.mako.rs b/components/style/properties/longhands/effects.mako.rs index 34bd110c3c9..983f54fc02b 100644 --- a/components/style/properties/longhands/effects.mako.rs +++ b/components/style/properties/longhands/effects.mako.rs @@ -57,6 +57,21 @@ ${helpers.predefined_type( spec="https://drafts.fxtf.org/filters/#propdef-filter", )} +${helpers.predefined_type( + "backdrop-filter", + "Filter", + None, + vector=True, + simple_vector_bindings=True, + gecko_ffi_name="mBackdropFilters", + separator="Space", + animation_value_type="AnimatedFilterList", + vector_animation_type="with_zero", + flags="CREATES_STACKING_CONTEXT FIXPOS_CB", + gecko_pref="layout.css.backdrop-filter.enabled", + spec="https://drafts.fxtf.org/filter-effects-2/#propdef-backdrop-filter", +)} + ${helpers.single_keyword( "mix-blend-mode", """normal multiply screen overlay darken lighten color-dodge