Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't backdropFilter available in CSSStyleDeclaration?

Tags:

css

typescript

The following code is not valid under the error:

Property 'backdropFilter' does not exist on type 'CSSStyleDeclaration'.

const modal = document.createElement('div')
modal.style.backdropFilter = '??'

Is there an explanation to why isn't https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter available in typescript?

like image 679
Erik Campobadal Avatar asked Sep 08 '25 06:09

Erik Campobadal


1 Answers

currently this property does not be considered as a normal case, but a special case, since it's not be supported in all version of firefox, you can keep tracing this issue: backdropFilter missing from CSSStyleDeclaration #1118

like image 81
enzoyaaaaa Avatar answered Sep 10 '25 06:09

enzoyaaaaa