benchmark/packages/300/dynamic/plugins/flex.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = flex;
var _getPrefixedValue = require('../../utils/getPrefixedValue');
var _getPrefixedValue2 = _interopRequireDefault(_getPrefixedValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var values = {
flex: true,
'inline-flex': true
};
function flex(property, value, style, _ref) {
var browserName = _ref.browserName,
browserVersion = _ref.browserVersion,
cssPrefix = _ref.cssPrefix,
keepUnprefixed = _ref.keepUnprefixed;
if (property === 'display' && values[value] && (browserName === 'chrome' && browserVersion < 29 && browserVersion > 20 || (browserName === 'safari' || browserName === 'ios_saf') && browserVersion < 9 && browserVersion > 6 || browserName === 'opera' && (browserVersion === 15 || browserVersion === 16))) {
return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed);
}
}
module.exports = exports['default'];