Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap Support to FlexBox Model

Does PhoneGap browser support CSS flexbox model? What flexbox spec (new or old)?

I tried with -webkit-flex spec but no luck!

like image 429
geeko Avatar asked Feb 18 '26 20:02

geeko


1 Answers

Unless I am missing something here, CSS support is specific to the device its being run on. At this point in time, all Android and iOS are supporting the 2009 Flexbox spec in their native browser, as well as Blackberry 7. Blackberry 10 is supporting the standard properties.

To be safe going forwards, you'll want both old and new properties:

.foo {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

Not sure if PhoneGap can be compiled to work on Windows mobile devices, but if they're supporting flexbox, you're looking for -ms-flexbox.

http://caniuse.com/flexbox

like image 98
cimmanon Avatar answered Feb 20 '26 08:02

cimmanon