githubEdit

PostCSS Flexbugs Fixes

PostCSSarrow-up-right plugin This project tries to fix all of flexbug'sarrow-up-right issues.

Input

.foo { flex: 1; }
.bar { flex: 1 1; }
.foz { flex: 1 1 0; }
.baz { flex: 1 1 0px; }

Output

.foo { flex: 1 1; }
.bar { flex: 1 1; }
.foz { flex: 1 1; }
.baz { flex: 1 1; }

Input

.foo { flex: 1; }

Output

This only fixes css classes that have the flex property set. To fix elements that are contained inside a flexbox container, use this global rule:

Input

Output

Usage

You can also disable bugs individually, possible keys bug4, bug6 and bug8a.

See PostCSSarrow-up-right docs for examples for your environment.

Last updated

Was this helpful?