From 887a189f5205aaf30d30093083a1d3495013f034 Mon Sep 17 00:00:00 2001 From: BenSeage Date: Thu, 30 Dec 2021 14:44:44 +0800 Subject: [PATCH] fix: backdrop-filter webkit --- src/backdrop-filter.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/backdrop-filter.ts b/src/backdrop-filter.ts index 685bc04ee..e97a08864 100644 --- a/src/backdrop-filter.ts +++ b/src/backdrop-filter.ts @@ -1,7 +1,11 @@ -import { BACKDROP, DASH, FILTER } from './constants/css-property-keyword'; import { Style } from '@master/style'; export class BackdropFilterStyle extends Style { - static override matches = /^bd:./; - static override key = BACKDROP + DASH + FILTER; + static override matches = /^(bd|backdrop-filter):./; + override get props(): { [key: string]: any } { + return { + 'backdrop-filter': this, + '-webkit-backdrop-filter': this + } + }; } \ No newline at end of file