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

Firefox bug: after applying filter to an element, all its positioned descendants behave like the element was positioned #126

Closed
m-khvoinitsky opened this issue Nov 25, 2017 · 2 comments

Comments

@m-khvoinitsky
Copy link
Owner

m-khvoinitsky commented Nov 25, 2017

While it has been fixed in 0.6.12 by using backdrop-filter, it is not enabled by default in Firefox, so in order to experience the fix, you need to:

  • use at least Firefox 70
  • enable backdrop-filter (layout.css.backdrop-filter.enabledtrue in about:config)
  • enable WebRender (gfx.webrender.alltrue in about:config)

It causes number of issues with Invert method like #50, #143, Facebook messenger floating window issue, etc.

https://bugzilla.mozilla.org/show_bug.cgi?id=1258421
https://bugzilla.mozilla.org/show_bug.cgi?id=1106895

Different issue, but for the reference: #40 (comment)

@m-khvoinitsky
Copy link
Owner Author

According to https://developer.mozilla.org/en-US/docs/Web/CSS/position#fixed, this is expected behavior:

It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left.

@m-khvoinitsky
Copy link
Owner Author

While it has been fixed in 0.6.12 by using backdrop-filter, it is not enabled by default in Firefox, so in order to experience the fix, you need to:

  • use at least Firefox 70
  • enable backdrop-filter (layout.css.backdrop-filter.enabledtrue in about:config)
  • enable WebRender (gfx.webrender.alltrue in about:config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant