Skip to content

Commit

Permalink
support inline-flex
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Sep 30, 2015
1 parent 4d80146 commit b101368
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/autoprefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function autoprefix(style) {
msTransition: style.transition,
})
}

if (style.hasOwnProperty("transform")) {
Object.assign(style, {
WebkitTransform: style.transform,
Expand Down Expand Up @@ -54,7 +54,7 @@ export default function autoprefix(style) {
WebkitFlexDirection: style.flexDirection,
})
}

if (style.hasOwnProperty("flexFlow")) {
Object.assign(style, {
WebkitFlexFlow: style.flexFlow,
Expand Down Expand Up @@ -101,5 +101,10 @@ export default function autoprefix(style) {
style.display = style.display + ";display:-webkit-flex;display:-ms-flexbox"
}

if (style.display === "inline-flex") {
style.display =
style.display + ";display:-webkit-inline-flex;display:-ms-inline-flexbox"
}

return style
}

0 comments on commit b101368

Please sign in to comment.