Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backdrop-filter CSS property to dart:html #47996

Open
rileyporter opened this issue Dec 21, 2021 · 0 comments
Open

Add backdrop-filter CSS property to dart:html #47996

rileyporter opened this issue Dec 21, 2021 · 0 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html web-libraries Issues impacting dart:html, etc., libraries

Comments

@rileyporter
Copy link
Contributor

As reported in a comment on #46077, backdrop-filter CSS property is missing from dart:html. It's not currently supported in Firefox, so we want to add the property with some annotation to track that it's not fully supported.

For now, the property can be accessed with a js_util workaround:

import 'package:js/js_util.dart' as js_util;

var filter = js_util.getProperty(element.style, "backdropFilter");
js_util.setProperty(element.style, "backdropFilter", newFilterValue);
@rileyporter rileyporter added library-html web-libraries Issues impacting dart:html, etc., libraries labels Dec 21, 2021
@lrhn lrhn added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

2 participants