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

Mirror object is mispositioned when container has backdrop-filter CSS rule #517

Open
webakimbo opened this issue Feb 14, 2022 · 3 comments

Comments

@webakimbo
Copy link

If the CSS for the Sortable container has a backdrop-filter rule (even if it's zero), the mirror object gets positioned incorrectly.

Codepen here. Use the checkbox to toggle on/off the offending CSS declaration.

  • Library version: 1.0.0-beta.12
  • Browsers: Chrome v98.0.4758.80
  • Tech stack: Sortable + vanilla JS
@webakimbo
Copy link
Author

(FYI: this is a bug, but the UI is not currently letting me label it as such.)

@zjffun
Copy link
Contributor

zjffun commented Feb 15, 2022

Looks like because position: fixed is not based on the top left corner of the page in some cases.

You can try fix #455, or use DragSensor.

@webakimbo
Copy link
Author

Good find, that must be it. From the spec:

A value other than none for the filter property results in the creation of a containing block for absolute and fixed positioned descendants unless the element it applies to is a document root element in the current browsing context.

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

No branches or pull requests

2 participants