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
Modernizr says flex-wrap is supported in UC on Android #2205
Comments
Just to add to the confusion, UC says it does support var wrapIsSupported = document.createElement("div").style.flexWrap !== undefined;
//wrapIsSupported is true |
hey @ethanroday! |
@patrickkettner FYI: I have managed to solve this by discarding I myself rely on a detect of UCWeb to be sure. However I think it could work for you without it, since |
Thanks for the info @hexalys!
We would just need to flex-wrap something with a known width and height and check the height of the container element |
Ah yeah, you could do that too. :) It seems too expensive, for my taste anyway. |
we do it in a number of places. some folks need accuracy |
@patrickkettner Seeing a meme in a Github issue thread rather made my day. Seems like @hexalys answered your question, but let me know if you need any more information from me. |
@ethanroday we are good! :] Going to see if UC could possibly change their behavior, and if not we will update our code accordingly |
Modernizr does not seem to detect that
flex-wrap
is not supported in UC Browser for Android (http://caniuse.com/#search=flex).With the following CSS, the background color of a page loaded in UC does not change:
Similarly, with
.mod-flexwrap
, the background color does change where it shouldn't.(I am using the following custom build: https://modernizr.com/download/?-flexbox-flexwrap-setclasses-cssclassprefix:mod-)
The text was updated successfully, but these errors were encountered: