Thanks Philippe,

That will work for detecting flex-wrap, but I'm hoping to find a hack or
existing polyfill that makes Firefox honor the behavior, instead of feeding
it something else if it doesn't.

Chris
On Nov 22, 2013 7:28 PM, "Philippe Wittenbergh" <[email protected]> wrote:

>
> Le 23 nov. 2013 à 06:43, Chris Rockwell <[email protected]> a écrit
> :
>
> > Hello all!
> >
> > Is anyone aware of any hacks/polyfills that can reasonably make up for
> > Firefox lack of support for the wrap value in flex?  I'm working on a
> > modern browser only project with a complex layout and Firefox is really
> > throwing a wrench in it.
>
> You could use @support ()
>
> /* CSS for browsers that don't support flex-box */
> .mybox { /* …….. */
> }
>
> /* CSS for browser that do support flex-wrap */
>
> .mybox {  display: flex }
> .mybox > div  { flex-wrap: wrap; /* etc */ }
>
> /* css for current firefox  — note the NOT */
> @support not(flex-wrap) {
>         .mybox { display: block; }
>         .mybox > div display: table-cell ; /* …… */
> }
>
> Credit: https://bugzilla.mozilla.org/show_bug.cgi?id=702508#c19
>
> The day Firefox fully supports flex-wrap, it will ignore the code in the
> @supportblock.
>
> (disclaimer: I haven't used this, yet)
>
> Philippe
> --
> Philippe Wittenbergh
> http://l-c-n.com
>
>
>
>
>
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to