Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

display: flex on parent element causes flicker #109

Open
jacobdubail opened this issue Aug 29, 2016 · 3 comments
Open

display: flex on parent element causes flicker #109

jacobdubail opened this issue Aug 29, 2016 · 3 comments

Comments

@jacobdubail
Copy link

Has anyone else run into this? If the sticky element's parent is set to display:flex, the sticky element flickers on/off. I'll post a test case from codepen shortly.

@jacobdubail
Copy link
Author

I should qualify this. If the sticky element has flex: auto, then it's fine, but if no value is supplied, it seems to flicker.

@jacobdubail
Copy link
Author

Okay, after more digging, it appears the issue is actually due to the use of vh units in the element's padding.

@jake
Copy link

jake commented Feb 24, 2017

I had this issue as well, but couldn't trace the issue to vh or fix with flex: auto. I was able to fix by adding backface-visibility: hidden to the sticky element and everything within it.

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

No branches or pull requests

2 participants