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
Flex gap detection does not work when inside display:none iframe #2590
Comments
Using Would converting this to an async test be acceptable for backwards compatibility @rejas? |
Hello Chris, I was looking for a way to detect the support for flexbox gap, but I didn't find the CSS class in the official modernizr build. Is this feature still not released yet? Sorry that my question is not related to the issue. |
Hi @shadeed the feature is already in the codebase under the css folder (or click here) and should be available in the last version available on Github. The problem resides on the fact that the web is outdated (I think it works with v3.6.0), it is a problem that has been for a time now. Apart from building the library from source code there is no other solution I can give right now 😔.
|
I guess that would be acceptable. But maybe @Markel and @patrickkettner have some opinion on this too? |
I honestly don't have a clue whether converting a test to async causes compatibility problems @rejas 😅 If it doesn't I would go for it, I think async should be the future (I actually have written my few tests asynchronously) If it does... I mean we haven't released v4 yet so we have that possibility 🤷. Maybe we should create a v4 branch and maybe merge #2108 there (seeing that the PR is becoming outdated) so we have things more organized 🤔? Edit: PR number corrected |
Just submitted a PR #2593 to fix this |
I believe this is because
scrollHeight
does not get computed by the browser until an actual layout is performed. And since the iframe isdisplay:none
, no layout happens.Possible solutions:
resize
event (triggered whendisplay:none
is removed) before testingTest case:
modernizr-flexgap-issue-iframe.html:
The text was updated successfully, but these errors were encountered: