inline-style-prefixer
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -1,1 +0,1 @@ | ||
var prefixes = {"ie":{"flex":10,"flexBasis":10,"flexDirection":10,"flexGrow":10,"flexFlow":10,"flexShrink":10,"alignContent":10,"alignItems":10,"alignSelf":10,"justifyContent":10,"order":10,"userSelect":11,"wrapFlow":11,"wrapThrough":11,"wrapMargin":11,"scrollSnapType":11,"scrollSnapPointsX":11,"scrollSnapPointsY":11,"scrollSnapDestination":11,"scrollSnapCoordinate":11,"touchAction":10,"hyphens":11,"flowInto":11,"flowFrom":11,"regionFragment":11,"gridTemplateColumns":11,"gridTemplateRows":11,"gridTemplateAreas":11,"gridTemplate":11,"gridAutoColumns":11,"gridAutoRows":11,"gridAutoFlow":11,"grid":11,"gridRowStart":11,"gridColumnStart":11,"gridRowEnd":11,"gridRow":11,"gridColumn":11,"gridArea":11,"rowGap":11,"gridGap":11},"firefox":{"borderRadius":3.6,"borderImage":14,"borderImageOutset":14,"borderImageRepeat":14,"borderImageSlice":14,"borderImageSource":14,"borderImageWidth":14,"flex":21,"flexBasis":21,"flexDirection":21,"flexGrow":21,"flexFlow":21,"flexShrink":21,"alignContent":21,"alignItems":21,"alignSelf":21,"justifyContent":21,"order":21,"transition":15,"transitionDelay":15,"transitionDuration":15,"transitionProperty":15,"transitionTimingFunction":15,"backfaceVisibility":15,"perspective":15,"perspectiveOrigin":15,"transform":15,"transformOrigin":15,"transformStyle":15,"transformOriginX":15,"transformOriginY":15,"animation":15,"animationDelay":15,"animationDirection":15,"animationFillMode":15,"animationDuration":15,"anmationIterationCount":15,"animationName":15,"animationPlayState":15,"animationTimingFunction":15,"appearance":42,"userSelect":42,"boxSizing":28,"textAlignLast":42,"textDecorationStyle":35,"textDecorationSkip":35,"textDecorationLine":35,"textDecorationColor":35,"tabSize":42,"resize":4,"hyphens":42,"breakBefore":42,"breakAfter":42,"breakInside":42,"columnGap":42,"backgroundClip":3.6,"backgroundOrigin":3.6,"backgroundSize":3.6,"fontFeatureSettings":33,"boxShadow":3.6,"columnCount":42,"columnFill":42,"columnRule":42,"columnRuleColor":42,"columnRuleStyle":42,"columnRuleWidth":42,"columns":42,"columnSpan":42,"columnWidth":42},"safari":{"borderRadius":4,"borderImage":5.1,"borderImageOutset":5.1,"borderImageRepeat":5.1,"borderImageSlice":5.1,"borderImageSource":5.1,"borderImageWidth":5.1,"flex":8,"flexBasis":8,"flexDirection":8,"flexGrow":8,"flexFlow":8,"flexShrink":8,"alignContent":8,"alignItems":8,"alignSelf":8,"justifyContent":8,"order":8,"transition":6,"transitionDelay":6,"transitionDuration":6,"transitionProperty":6,"transitionTimingFunction":6,"backfaceVisibility":8,"perspective":8,"perspectiveOrigin":8,"transform":8,"transformOrigin":8,"transformStyle":8,"transformOriginX":8,"transformOriginY":8,"animation":8,"animationDelay":8,"animationDirection":8,"animationFillMode":8,"animationDuration":8,"anmationIterationCount":8,"animationName":8,"animationPlayState":8,"animationTimingFunction":8,"appearance":9,"userSelect":9,"backdropFilter":9,"boxSizing":5,"fontKerning":9,"scrollSnapType":9,"scrollSnapPointsX":9,"scrollSnapPointsY":9,"scrollSnapDestination":9,"scrollSnapCoordinate":9,"textEmphasisPosition":7,"textEmphasis":7,"textEmphasisStyle":7,"textEmphasisColor":7,"boxDecorationBreak":9,"clipPath":9,"maskImage":9,"maskMode":9,"maskRepeat":9,"maskPosition":9,"maskClip":9,"maskOrigin":9,"maskSize":9,"maskComposite":9,"mask":9,"maskBorderSource":9,"maskBorderMode":9,"maskBorderSlice":9,"maskBorderWidth":9,"maskBorderOutset":9,"maskBorderRepeat":9,"maskBorder":9,"maskType":9,"textDecorationStyle":9,"textDecorationSkip":9,"textDecorationLine":9,"textDecorationColor":9,"shapeImageThreshold":9,"shapeImageMargin":9,"shapeImageOutside":9,"filter":9,"hyphens":9,"flowInto":9,"flowFrom":9,"breakBefore":8,"breakAfter":8,"breakInside":8,"regionFragment":9,"columnGap":8,"boxShadow":5,"columnCount":8,"columnFill":8,"columnRule":8,"columnRuleColor":8,"columnRuleStyle":8,"columnRuleWidth":8,"columns":8,"columnSpan":8,"columnWidth":8},"chrome":{"borderRadius":4,"borderImage":15,"borderImageOutset":15,"borderImageRepeat":15,"borderImageSlice":15,"borderImageSource":15,"borderImageWidth":15,"flex":28,"flexBasis":28,"flexDirection":28,"flexGrow":28,"flexFlow":28,"flexShrink":28,"alignContent":28,"alignItems":28,"alignSelf":28,"justifyContent":28,"order":28,"transition":25,"transitionDelay":25,"transitionDuration":25,"transitionProperty":25,"transitionTimingFunction":25,"backfaceVisibility":35,"perspective":35,"perspectiveOrigin":35,"transform":35,"transformOrigin":35,"transformStyle":35,"transformOriginX":35,"transformOriginY":35,"animation":42,"animationDelay":42,"animationDirection":42,"animationFillMode":42,"animationDuration":42,"anmationIterationCount":42,"animationName":42,"animationPlayState":42,"animationTimingFunction":42,"appearance":47,"userSelect":47,"boxSizing":9,"fontKerning":32,"textEmphasisPosition":47,"textEmphasis":47,"textEmphasisStyle":47,"textEmphasisColor":47,"boxDecorationBreak":47,"clipPath":47,"maskImage":47,"maskMode":47,"maskRepeat":47,"maskPosition":47,"maskClip":47,"maskOrigin":47,"maskSize":47,"maskComposite":47,"mask":47,"maskBorderSource":47,"maskBorderMode":47,"maskBorderSlice":47,"maskBorderWidth":47,"maskBorderOutset":47,"maskBorderRepeat":47,"maskBorder":47,"maskType":47,"textDecorationStyle":47,"textDecorationSkip":47,"textDecorationLine":47,"textDecorationColor":47,"filter":47,"flowInto":18,"flowFrom":18,"breakBefore":47,"breakAfter":47,"breakInside":47,"regionFragment":18,"columnGap":47,"fontFeatureSettings":47,"boxShadow":9,"columnCount":47,"columnFill":47,"columnRule":47,"columnRuleColor":47,"columnRuleStyle":47,"columnRuleWidth":47,"columns":47,"columnSpan":47,"columnWidth":47},"opera":{"borderImage":12.1,"borderImageOutset":12.1,"borderImageRepeat":12.1,"borderImageSlice":12.1,"borderImageSource":12.1,"borderImageWidth":12.1,"flex":16,"flexBasis":16,"flexDirection":16,"flexGrow":16,"flexFlow":16,"flexShrink":16,"alignContent":16,"alignItems":16,"alignSelf":16,"justifyContent":16,"order":16,"transition":12,"transitionDelay":12,"transitionDuration":12,"transitionProperty":12,"transitionTimingFunction":12,"backfaceVisibility":22,"perspective":22,"perspectiveOrigin":22,"transform":22,"transformOrigin":22,"transformStyle":22,"transformOriginX":22,"transformOriginY":22,"animation":29,"animationDelay":29,"animationDirection":29,"animationFillMode":29,"animationDuration":29,"anmationIterationCount":29,"animationName":29,"animationPlayState":29,"animationTimingFunction":29,"appearance":32,"userSelect":32,"fontKerning":19,"textEmphasisPosition":32,"textEmphasis":32,"textEmphasisStyle":32,"textEmphasisColor":32,"boxDecorationBreak":32,"clipPath":32,"maskImage":32,"maskMode":32,"maskRepeat":32,"maskPosition":32,"maskClip":32,"maskOrigin":32,"maskSize":32,"maskComposite":32,"mask":32,"maskBorderSource":32,"maskBorderMode":32,"maskBorderSlice":32,"maskBorderWidth":32,"maskBorderOutset":32,"maskBorderRepeat":32,"maskBorder":32,"maskType":32,"tabSize":12.1,"filter":32,"breakBefore":32,"breakAfter":32,"breakInside":32,"columnGap":32,"objectFit":12.1,"objectPosition":12.1,"textOverflow":10.6,"backgroundClip":10,"backgroundOrigin":10,"backgroundSize":10,"fontFeatureSettings":32,"columnCount":32,"columnFill":32,"columnRule":32,"columnRuleColor":32,"columnRuleStyle":32,"columnRuleWidth":32,"columns":32,"columnSpan":32,"columnWidth":32}}; module.exports = prefixes | ||
var prefixes = {"chrome":{"borderRadius":4,"borderImage":15,"borderImageOutset":15,"borderImageRepeat":15,"borderImageSlice":15,"borderImageSource":15,"borderImageWidth":15,"flex":28,"flexBasis":28,"flexDirection":28,"flexGrow":28,"flexFlow":28,"flexShrink":28,"alignContent":28,"alignItems":28,"alignSelf":28,"justifyContent":28,"order":28,"transition":25,"transitionDelay":25,"transitionDuration":25,"transitionProperty":25,"transitionTimingFunction":25,"backfaceVisibility":35,"perspective":35,"perspectiveOrigin":35,"transform":35,"transformOrigin":35,"transformStyle":35,"transformOriginX":35,"transformOriginY":35,"animation":42,"animationDelay":42,"animationDirection":42,"animationFillMode":42,"animationDuration":42,"anmationIterationCount":42,"animationName":42,"animationPlayState":42,"animationTimingFunction":42,"appearance":47,"userSelect":47,"boxSizing":9,"fontKerning":32,"textEmphasisPosition":47,"textEmphasis":47,"textEmphasisStyle":47,"textEmphasisColor":47,"boxDecorationBreak":47,"clipPath":47,"maskImage":47,"maskMode":47,"maskRepeat":47,"maskPosition":47,"maskClip":47,"maskOrigin":47,"maskSize":47,"maskComposite":47,"mask":47,"maskBorderSource":47,"maskBorderMode":47,"maskBorderSlice":47,"maskBorderWidth":47,"maskBorderOutset":47,"maskBorderRepeat":47,"maskBorder":47,"maskType":47,"textDecorationStyle":47,"textDecorationSkip":47,"textDecorationLine":47,"textDecorationColor":47,"filter":47,"flowInto":18,"flowFrom":18,"breakBefore":47,"breakAfter":47,"breakInside":47,"regionFragment":18,"columnGap":47,"fontFeatureSettings":47,"boxShadow":9,"columnCount":47,"columnFill":47,"columnRule":47,"columnRuleColor":47,"columnRuleStyle":47,"columnRuleWidth":47,"columns":47,"columnSpan":47,"columnWidth":47},"safari":{"borderRadius":4,"borderImage":5.1,"borderImageOutset":5.1,"borderImageRepeat":5.1,"borderImageSlice":5.1,"borderImageSource":5.1,"borderImageWidth":5.1,"flex":8,"flexBasis":8,"flexDirection":8,"flexGrow":8,"flexFlow":8,"flexShrink":8,"alignContent":8,"alignItems":8,"alignSelf":8,"justifyContent":8,"order":8,"transition":6,"transitionDelay":6,"transitionDuration":6,"transitionProperty":6,"transitionTimingFunction":6,"backfaceVisibility":8,"perspective":8,"perspectiveOrigin":8,"transform":8,"transformOrigin":8,"transformStyle":8,"transformOriginX":8,"transformOriginY":8,"animation":8,"animationDelay":8,"animationDirection":8,"animationFillMode":8,"animationDuration":8,"anmationIterationCount":8,"animationName":8,"animationPlayState":8,"animationTimingFunction":8,"appearance":9,"userSelect":9,"backdropFilter":9,"boxSizing":5,"fontKerning":9,"scrollSnapType":9,"scrollSnapPointsX":9,"scrollSnapPointsY":9,"scrollSnapDestination":9,"scrollSnapCoordinate":9,"textEmphasisPosition":7,"textEmphasis":7,"textEmphasisStyle":7,"textEmphasisColor":7,"boxDecorationBreak":9,"clipPath":9,"maskImage":9,"maskMode":9,"maskRepeat":9,"maskPosition":9,"maskClip":9,"maskOrigin":9,"maskSize":9,"maskComposite":9,"mask":9,"maskBorderSource":9,"maskBorderMode":9,"maskBorderSlice":9,"maskBorderWidth":9,"maskBorderOutset":9,"maskBorderRepeat":9,"maskBorder":9,"maskType":9,"textDecorationStyle":9,"textDecorationSkip":9,"textDecorationLine":9,"textDecorationColor":9,"shapeImageThreshold":9,"shapeImageMargin":9,"shapeImageOutside":9,"filter":9,"hyphens":9,"flowInto":9,"flowFrom":9,"breakBefore":8,"breakAfter":8,"breakInside":8,"regionFragment":9,"columnGap":8,"boxShadow":5,"columnCount":8,"columnFill":8,"columnRule":8,"columnRuleColor":8,"columnRuleStyle":8,"columnRuleWidth":8,"columns":8,"columnSpan":8,"columnWidth":8},"firefox":{"borderRadius":3.6,"borderImage":14,"borderImageOutset":14,"borderImageRepeat":14,"borderImageSlice":14,"borderImageSource":14,"borderImageWidth":14,"flex":21,"flexBasis":21,"flexDirection":21,"flexGrow":21,"flexFlow":21,"flexShrink":21,"alignContent":21,"alignItems":21,"alignSelf":21,"justifyContent":21,"order":21,"transition":15,"transitionDelay":15,"transitionDuration":15,"transitionProperty":15,"transitionTimingFunction":15,"backfaceVisibility":15,"perspective":15,"perspectiveOrigin":15,"transform":15,"transformOrigin":15,"transformStyle":15,"transformOriginX":15,"transformOriginY":15,"animation":15,"animationDelay":15,"animationDirection":15,"animationFillMode":15,"animationDuration":15,"anmationIterationCount":15,"animationName":15,"animationPlayState":15,"animationTimingFunction":15,"appearance":42,"userSelect":42,"boxSizing":28,"textAlignLast":42,"textDecorationStyle":35,"textDecorationSkip":35,"textDecorationLine":35,"textDecorationColor":35,"tabSize":42,"resize":4,"hyphens":42,"breakBefore":42,"breakAfter":42,"breakInside":42,"columnGap":42,"backgroundClip":3.6,"backgroundOrigin":3.6,"backgroundSize":3.6,"fontFeatureSettings":33,"boxShadow":3.6,"columnCount":42,"columnFill":42,"columnRule":42,"columnRuleColor":42,"columnRuleStyle":42,"columnRuleWidth":42,"columns":42,"columnSpan":42,"columnWidth":42},"opera":{"borderImage":12.1,"borderImageOutset":12.1,"borderImageRepeat":12.1,"borderImageSlice":12.1,"borderImageSource":12.1,"borderImageWidth":12.1,"flex":16,"flexBasis":16,"flexDirection":16,"flexGrow":16,"flexFlow":16,"flexShrink":16,"alignContent":16,"alignItems":16,"alignSelf":16,"justifyContent":16,"order":16,"transition":12,"transitionDelay":12,"transitionDuration":12,"transitionProperty":12,"transitionTimingFunction":12,"backfaceVisibility":22,"perspective":22,"perspectiveOrigin":22,"transform":22,"transformOrigin":22,"transformStyle":22,"transformOriginX":22,"transformOriginY":22,"animation":29,"animationDelay":29,"animationDirection":29,"animationFillMode":29,"animationDuration":29,"anmationIterationCount":29,"animationName":29,"animationPlayState":29,"animationTimingFunction":29,"appearance":32,"userSelect":32,"fontKerning":19,"textEmphasisPosition":32,"textEmphasis":32,"textEmphasisStyle":32,"textEmphasisColor":32,"boxDecorationBreak":32,"clipPath":32,"maskImage":32,"maskMode":32,"maskRepeat":32,"maskPosition":32,"maskClip":32,"maskOrigin":32,"maskSize":32,"maskComposite":32,"mask":32,"maskBorderSource":32,"maskBorderMode":32,"maskBorderSlice":32,"maskBorderWidth":32,"maskBorderOutset":32,"maskBorderRepeat":32,"maskBorder":32,"maskType":32,"tabSize":12.1,"filter":32,"breakBefore":32,"breakAfter":32,"breakInside":32,"columnGap":32,"objectFit":12.1,"objectPosition":12.1,"textOverflow":10.6,"backgroundClip":10,"backgroundOrigin":10,"backgroundSize":10,"fontFeatureSettings":32,"columnCount":32,"columnFill":32,"columnRule":32,"columnRuleColor":32,"columnRuleStyle":32,"columnRuleWidth":32,"columns":32,"columnSpan":32,"columnWidth":32},"ie":{"flex":10,"flexBasis":10,"flexDirection":10,"flexGrow":10,"flexFlow":10,"flexShrink":10,"alignContent":10,"alignItems":10,"alignSelf":10,"justifyContent":10,"order":10,"userSelect":11,"wrapFlow":11,"wrapThrough":11,"wrapMargin":11,"scrollSnapType":11,"scrollSnapPointsX":11,"scrollSnapPointsY":11,"scrollSnapDestination":11,"scrollSnapCoordinate":11,"touchAction":10,"hyphens":11,"flowInto":11,"flowFrom":11,"regionFragment":11,"gridTemplateColumns":11,"gridTemplateRows":11,"gridTemplateAreas":11,"gridTemplate":11,"gridAutoColumns":11,"gridAutoRows":11,"gridAutoFlow":11,"grid":11,"gridRowStart":11,"gridColumnStart":11,"gridRowEnd":11,"gridRow":11,"gridColumn":11,"gridArea":11,"rowGap":11,"gridGap":11},"ios_saf":{"borderRadius":3.2,"borderImage":5,"borderImageOutset":5,"borderImageRepeat":5,"borderImageSlice":5,"borderImageSource":5,"borderImageWidth":5,"flex":8.1,"flexBasis":8.1,"flexDirection":8.1,"flexGrow":8.1,"flexFlow":8.1,"flexShrink":8.1,"alignContent":8.1,"alignItems":8.1,"alignSelf":8.1,"justifyContent":8.1,"order":8.1,"transition":6,"transitionDelay":6,"transitionDuration":6,"transitionProperty":6,"transitionTimingFunction":6,"backfaceVisibility":8.1,"perspective":8.1,"perspectiveOrigin":8.1,"transform":8.1,"transformOrigin":8.1,"transformStyle":8.1,"transformOriginX":8.1,"transformOriginY":8.1,"animation":8.1,"animationDelay":8.1,"animationDirection":8.1,"animationFillMode":8.1,"animationDuration":8.1,"anmationIterationCount":8.1,"animationName":8.1,"animationPlayState":8.1,"animationTimingFunction":8.1,"appearance":9,"userSelect":9,"backdropFilter":9,"boxSizing":4.2,"fontKerning":9,"scrollSnapType":9,"scrollSnapPointsX":9,"scrollSnapPointsY":9,"scrollSnapDestination":9,"scrollSnapCoordinate":9,"boxDecorationBreak":9,"clipPath":9,"maskImage":9,"maskMode":9,"maskRepeat":9,"maskPosition":9,"maskClip":9,"maskOrigin":9,"maskSize":9,"maskComposite":9,"mask":9,"maskBorderSource":9,"maskBorderMode":9,"maskBorderSlice":9,"maskBorderWidth":9,"maskBorderOutset":9,"maskBorderRepeat":9,"maskBorder":9,"maskType":9,"textSizeAdjust":9,"textDecorationStyle":9,"textDecorationSkip":9,"textDecorationLine":9,"textDecorationColor":9,"shapeImageThreshold":9,"shapeImageMargin":9,"shapeImageOutside":9,"filter":9,"hyphens":9,"flowInto":9,"flowFrom":9,"breakBefore":8.1,"breakAfter":8.1,"breakInside":8.1,"regionFragment":9,"columnGap":8.1,"boxShadow":4.2,"columnCount":8.1,"columnFill":8.1,"columnRule":8.1,"columnRuleColor":8.1,"columnRuleStyle":8.1,"columnRuleWidth":8.1,"columns":8.1,"columnSpan":8.1,"columnWidth":8.1},"android":{"borderRadius":2.1,"borderImage":4.2,"borderImageOutset":4.2,"borderImageRepeat":4.2,"borderImageSlice":4.2,"borderImageSource":4.2,"borderImageWidth":4.2,"flex":4.2,"flexBasis":4.2,"flexDirection":4.2,"flexGrow":4.2,"flexFlow":4.2,"flexShrink":4.2,"alignContent":4.2,"alignItems":4.2,"alignSelf":4.2,"justifyContent":4.2,"order":4.2,"transition":4.2,"transitionDelay":4.2,"transitionDuration":4.2,"transitionProperty":4.2,"transitionTimingFunction":4.2,"backfaceVisibility":4.4,"perspective":4.4,"perspectiveOrigin":4.4,"transform":4.4,"transformOrigin":4.4,"transformStyle":4.4,"transformOriginX":4.4,"transformOriginY":4.4,"animation":40,"animationDelay":40,"animationDirection":40,"animationFillMode":40,"animationDuration":40,"anmationIterationCount":40,"animationName":40,"animationPlayState":40,"animationTimingFunction":40,"appearance":40,"userSelect":40,"boxSizing":3,"fontKerning":4.4,"textEmphasisPosition":40,"textEmphasis":40,"textEmphasisStyle":40,"textEmphasisColor":40,"boxDecorationBreak":40,"clipPath":40,"maskImage":40,"maskMode":40,"maskRepeat":40,"maskPosition":40,"maskClip":40,"maskOrigin":40,"maskSize":40,"maskComposite":40,"mask":40,"maskBorderSource":40,"maskBorderMode":40,"maskBorderSlice":40,"maskBorderWidth":40,"maskBorderOutset":40,"maskBorderRepeat":40,"maskBorder":40,"maskType":40,"filter":40,"breakBefore":40,"breakAfter":40,"breakInside":40,"columnGap":40,"backgroundClip":2.3,"backgroundOrigin":2.3,"backgroundSize":2.3,"fontFeatureSettings":40,"boxShadow":3,"columnCount":40,"columnFill":40,"columnRule":40,"columnRuleColor":40,"columnRuleStyle":40,"columnRuleWidth":40,"columns":40,"columnSpan":40,"columnWidth":40},"and_chr":{"animation":42,"animationDelay":42,"animationDirection":42,"animationFillMode":42,"animationDuration":42,"anmationIterationCount":42,"animationName":42,"animationPlayState":42,"animationTimingFunction":42,"appearance":42,"userSelect":42,"textEmphasisPosition":42,"textEmphasis":42,"textEmphasisStyle":42,"textEmphasisColor":42,"boxDecorationBreak":42,"clipPath":42,"maskImage":42,"maskMode":42,"maskRepeat":42,"maskPosition":42,"maskClip":42,"maskOrigin":42,"maskSize":42,"maskComposite":42,"mask":42,"maskBorderSource":42,"maskBorderMode":42,"maskBorderSlice":42,"maskBorderWidth":42,"maskBorderOutset":42,"maskBorderRepeat":42,"maskBorder":42,"maskType":42,"filter":42,"breakBefore":42,"breakAfter":42,"breakInside":42,"columnGap":42,"fontFeatureSettings":42,"columnCount":42,"columnFill":42,"columnRule":42,"columnRuleColor":42,"columnRuleStyle":42,"columnRuleWidth":42,"columns":42,"columnSpan":42,"columnWidth":42},"and_uc":{"flex":9.9,"flexBasis":9.9,"flexDirection":9.9,"flexGrow":9.9,"flexFlow":9.9,"flexShrink":9.9,"alignContent":9.9,"alignItems":9.9,"alignSelf":9.9,"justifyContent":9.9,"order":9.9,"transition":9.9,"transitionDelay":9.9,"transitionDuration":9.9,"transitionProperty":9.9,"transitionTimingFunction":9.9,"backfaceVisibility":9.9,"perspective":9.9,"perspectiveOrigin":9.9,"transform":9.9,"transformOrigin":9.9,"transformStyle":9.9,"transformOriginX":9.9,"transformOriginY":9.9,"animation":9.9,"animationDelay":9.9,"animationDirection":9.9,"animationFillMode":9.9,"animationDuration":9.9,"anmationIterationCount":9.9,"animationName":9.9,"animationPlayState":9.9,"animationTimingFunction":9.9,"appearance":9.9,"userSelect":9.9,"fontKerning":9.9,"textEmphasisPosition":9.9,"textEmphasis":9.9,"textEmphasisStyle":9.9,"textEmphasisColor":9.9,"maskImage":9.9,"maskMode":9.9,"maskRepeat":9.9,"maskPosition":9.9,"maskClip":9.9,"maskOrigin":9.9,"maskSize":9.9,"maskComposite":9.9,"mask":9.9,"maskBorderSource":9.9,"maskBorderMode":9.9,"maskBorderSlice":9.9,"maskBorderWidth":9.9,"maskBorderOutset":9.9,"maskBorderRepeat":9.9,"maskBorder":9.9,"maskType":9.9,"textSizeAdjust":9.9,"filter":9.9,"hyphens":9.9,"flowInto":9.9,"flowFrom":9.9,"breakBefore":9.9,"breakAfter":9.9,"breakInside":9.9,"regionFragment":9.9,"columnGap":9.9,"fontFeatureSettings":9.9,"columnCount":9.9,"columnFill":9.9,"columnRule":9.9,"columnRuleColor":9.9,"columnRuleStyle":9.9,"columnRuleWidth":9.9,"columns":9.9,"columnSpan":9.9,"columnWidth":9.9},"op_mini":{"borderImage":5,"borderImageOutset":5,"borderImageRepeat":5,"borderImageSlice":5,"borderImageSource":5,"borderImageWidth":5,"tabSize":5,"objectFit":5,"objectPosition":5},"ie_mob":{"flex":10,"flexBasis":10,"flexDirection":10,"flexGrow":10,"flexFlow":10,"flexShrink":10,"alignContent":10,"alignItems":10,"alignSelf":10,"justifyContent":10,"order":10,"userSelect":11,"wrapFlow":11,"wrapThrough":11,"wrapMargin":11,"touchAction":10,"textSizeAdjust":11,"flowInto":11,"flowFrom":11,"regionFragment":11,"gridTemplateColumns":11,"gridTemplateRows":11,"gridTemplateAreas":11,"gridTemplate":11,"gridAutoColumns":11,"gridAutoRows":11,"gridAutoFlow":11,"grid":11,"gridRowStart":11,"gridColumnStart":11,"gridRowEnd":11,"gridRow":11,"gridColumn":11,"gridArea":11,"rowGap":11,"gridGap":11}}; module.exports = prefixes |
@@ -41,4 +41,3 @@ 'use strict'; | ||
'multicolumn': ['breakAfter', 'breakBefore', 'breakInside', 'columnCount', 'columnFill', 'columnGap', 'columnRule', 'columnRuleColor', 'columnRuleStyle', 'columnRuleWidth', 'columns', 'columnSpan', 'columnWidth'] | ||
}; | ||
module.exports = exports['default']; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
function condition(browserInfo) { | ||
return browserInfo.prefix.inline == 'Webkit' && browserInfo.version < 4.4; | ||
return browserInfo.prefix.inline == 'Webkit' && browserInfo.android && browserInfo.version < 4.4; | ||
} | ||
@@ -11,0 +11,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
function condition(browserInfo) { | ||
return browserInfo.browser == 'ie' && browserInfo.version == 10; | ||
return browserInfo.msie && browserInfo.version == 10; | ||
} | ||
@@ -37,4 +37,4 @@ | ||
display: { | ||
'flex': browserInfo.prefix.css + 'flexbox', | ||
'inline-flex': browserInfo.prefix.css + 'inline-flexbox' | ||
'flex': browserInfo.prefix.CSS + 'flexbox', | ||
'inline-flex': browserInfo.prefix.CSS + 'inline-flexbox' | ||
} | ||
@@ -41,0 +41,0 @@ } |
246
lib/index.js
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
value: true | ||
}); | ||
@@ -19,5 +19,5 @@ exports.addPrefixedProperties = addPrefixedProperties; | ||
var _utilsGetBrowserInfo = require('./utils/getBrowserInfo'); | ||
var _browserinfo = require('./browserinfo'); | ||
var _utilsGetBrowserInfo2 = _interopRequireDefault(_utilsGetBrowserInfo); | ||
var _browserinfo2 = _interopRequireDefault(_browserinfo); | ||
@@ -39,32 +39,32 @@ var _data = require('./data'); | ||
exports['default'] = { | ||
/** | ||
* Sets the used userAgent | ||
* @param {string} userAgent - a valid userAgent string | ||
*/ | ||
setUserAgent: function setUserAgent(userAgent) { | ||
ua = userAgent; | ||
generateRequiredProperties(); | ||
}, | ||
/** | ||
* Sets the used userAgent | ||
* @param {string} userAgent - a valid userAgent string | ||
*/ | ||
setUserAgent: function setUserAgent(userAgent) { | ||
ua = userAgent; | ||
generateRequiredProperties(); | ||
}, | ||
/** | ||
* Returns the currently used userAgent | ||
*/ | ||
getUserAgent: function getUserAgent() { | ||
return ua; | ||
}, | ||
/** | ||
* Returns the currently used userAgent | ||
*/ | ||
getUserAgent: function getUserAgent() { | ||
return ua; | ||
}, | ||
/** | ||
* Processes an object of styles using userAgent specific | ||
* @param {Object} styles - Styles object that gets prefixed | ||
* @param {Boolean} hacks - If hacks should be used to resolve browser differences | ||
*/ | ||
process: function process(styles) { | ||
if (!generated) { | ||
generateRequiredProperties(); | ||
} | ||
if (requiredProperties.length > 0) { | ||
addPrefixedProperties(styles); | ||
} | ||
return styles; | ||
} | ||
/** | ||
* Processes an object of styles using userAgent specific | ||
* @param {Object} styles - Styles object that gets prefixed | ||
* @param {Boolean} hacks - If hacks should be used to resolve browser differences | ||
*/ | ||
process: function process(styles) { | ||
if (!generated) { | ||
generateRequiredProperties(); | ||
} | ||
if (requiredProperties.length > 0) { | ||
addPrefixedProperties(styles); | ||
} | ||
return styles; | ||
} | ||
}; | ||
@@ -78,35 +78,35 @@ | ||
function addPrefixedProperties(styles) { | ||
var property = undefined; | ||
var property = undefined; | ||
var _loop = function () { | ||
var value = styles[property]; | ||
var _loop = function () { | ||
var value = styles[property]; | ||
if (value instanceof Object) { | ||
//recursively loop through nested style objects | ||
addPrefixedProperties(value); | ||
} else { | ||
//add prefixes if needed | ||
if (isPrefixProperty(property)) { | ||
styles[generatePrefixedProperty(property)] = value; | ||
} | ||
if (value instanceof Object) { | ||
//recursively loop through nested style objects | ||
addPrefixedProperties(value); | ||
} else { | ||
//add prefixes if needed | ||
if (isPrefixProperty(property)) { | ||
styles[generatePrefixedProperty(property)] = value; | ||
} | ||
//resolve hacks | ||
requiredHacks.forEach(function (hack) { | ||
resolveHack(hack, styles, property, value); | ||
}); | ||
} | ||
}; | ||
//resolve hacks | ||
requiredHacks.forEach(function (hack) { | ||
resolveHack(hack, styles, property, value); | ||
}); | ||
} | ||
}; | ||
for (property in styles) { | ||
_loop(); | ||
} | ||
return styles; | ||
for (property in styles) { | ||
_loop(); | ||
} | ||
return styles; | ||
} | ||
function getPrefixedValue(property, oldValue, newValue) { | ||
if (newValue) { | ||
return value.replace(oldValue, info.prefix.css + newValue, 'g') + ';' + (0, _paramCase2['default'])(property) + ':' + oldValue; | ||
} else { | ||
return info.prefix.css + oldValue + ';' + (0, _paramCase2['default'])(property) + ':' + oldValue; | ||
} | ||
if (newValue) { | ||
return value.replace(oldValue, info.prefix.CSS + newValue, 'g') + ';' + (0, _paramCase2['default'])(property) + ':' + oldValue; | ||
} else { | ||
return info.prefix.CSS + oldValue + ';' + (0, _paramCase2['default'])(property) + ':' + oldValue; | ||
} | ||
} | ||
@@ -124,36 +124,38 @@ | ||
//prefix ordinary values | ||
if (hackData.prefixValue) { | ||
//prefix ordinary values | ||
if (hackData.prefixValue) { | ||
var values = hackData.prefixValue[property]; | ||
if (values) { | ||
if (hackData.containValue) { | ||
values.forEach(function (val) { | ||
if (value.indexOf(val) > -1) { | ||
styles[property] = getPrefixedValue(property, value, val); | ||
} | ||
}); | ||
} else { | ||
styles[property] = getPrefixedValue(property, value); | ||
} | ||
} | ||
} | ||
var values = hackData.prefixValue[property]; | ||
if (values) { | ||
if (hackData.containValue) { | ||
values.forEach(function (val) { | ||
if (value.indexOf(val) > -1) { | ||
styles[property] = getPrefixedValue(property, value, val); | ||
} | ||
}); | ||
} else { | ||
if (values.indexOf(value) > -1) { | ||
styles[property] = getPrefixedValue(property, value); | ||
} | ||
} | ||
} | ||
} | ||
//resolve property issues | ||
if (hackData.alternativeProperty) { | ||
//resolve property issues | ||
if (hackData.alternativeProperty) { | ||
var oldProperty = hackData.alternativeProperty[property]; | ||
if (oldProperty) { | ||
styles[oldProperty] = value; | ||
} | ||
} | ||
var oldProperty = hackData.alternativeProperty[property]; | ||
if (oldProperty) { | ||
styles[oldProperty] = value; | ||
} | ||
} | ||
//resolve alternative values | ||
if (hackData.alternativeValue) { | ||
//resolve alternative values | ||
if (hackData.alternativeValue) { | ||
var oldValue = hackData.alternativeValue[property]; | ||
if (oldValue && oldValue[value]) { | ||
styles[property] = oldValue[value] + ';' + (0, _paramCase2['default'])(property) + ':' + value; | ||
} | ||
} | ||
var oldValue = hackData.alternativeValue[property]; | ||
if (oldValue && oldValue[value]) { | ||
styles[property] = oldValue[value] + ';' + (0, _paramCase2['default'])(property) + ':' + value; | ||
} | ||
} | ||
} | ||
@@ -167,3 +169,3 @@ | ||
function caplitalizeString(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
@@ -178,3 +180,3 @@ | ||
function generatePrefixedProperty(property) { | ||
return info.prefix.inline + caplitalizeString(property); | ||
return info.prefix.inline + caplitalizeString(property); | ||
} | ||
@@ -188,3 +190,3 @@ | ||
function isPrefixProperty(property) { | ||
return requiredProperties.indexOf(property) > -1; | ||
return requiredProperties.indexOf(property) > -1; | ||
} | ||
@@ -198,40 +200,40 @@ | ||
function generateRequiredProperties() { | ||
var userAgent = arguments.length <= 0 || arguments[0] === undefined ? ua : arguments[0]; | ||
var userAgent = arguments.length <= 0 || arguments[0] === undefined ? ua : arguments[0]; | ||
requiredProperties = []; | ||
requiredHacks = []; | ||
requiredProperties = []; | ||
requiredHacks = []; | ||
if (userAgent) { | ||
info = (0, _utilsGetBrowserInfo2['default'])(userAgent); | ||
var data = _data2['default'][info.browser]; | ||
if (userAgent) { | ||
info = (0, _browserinfo2['default'])(userAgent); | ||
var data = _data2['default'][info.browser.toLowerCase()]; | ||
//only generate if there is browser data provided | ||
if (data) { | ||
var property = undefined; | ||
for (property in data) { | ||
if (data[property] >= info.version) { | ||
requiredProperties.push(property); | ||
} | ||
} | ||
//only generate if there is browser data provided | ||
if (data) { | ||
var property = undefined; | ||
for (property in data) { | ||
if (data[property] >= info.version) { | ||
requiredProperties.push(property); | ||
} | ||
} | ||
//add all required hacks for current browser | ||
var hack = undefined; | ||
for (hack in _hacks2['default']) { | ||
var hackData = _hacks2['default'][hack](info); | ||
if (hackData) { | ||
requiredHacks.push(hackData); | ||
} | ||
} | ||
//add all required hacks for current browser | ||
var hack = undefined; | ||
for (hack in _hacks2['default']) { | ||
var hackData = _hacks2['default'][hack](info); | ||
if (hackData) { | ||
requiredHacks.push(hackData); | ||
} | ||
} | ||
generated = true; | ||
return requiredProperties; | ||
} else { | ||
console.warn('Your browser seems to not be supported by inline-style-prefixer.'); | ||
console.warn('Please create an issue at https://github.com/rofrischmann/inline-style-prefixer'); | ||
return false; | ||
} | ||
} else { | ||
console.warn('userAgent needs to be set first. Use `.setUserAgent(userAgent)`'); | ||
return false; | ||
} | ||
generated = true; | ||
return requiredProperties; | ||
} else { | ||
console.warn('Your browser seems to not be supported by inline-style-prefixer.'); | ||
console.warn('Please create an issue at https://github.com/rofrischmann/inline-style-prefixer'); | ||
return false; | ||
} | ||
} else { | ||
console.warn('userAgent needs to be set first. Use `.setUserAgent(userAgent)`'); | ||
return false; | ||
} | ||
} |
{ | ||
"name": "inline-style-prefixer", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Autoprefixer for Inline Style objects using userAgent and caniuse data", | ||
@@ -16,7 +16,8 @@ "main": "lib/index.js", | ||
"pretest": "npm run clean && npm run transpile && npm run generate", | ||
"generate": "node lib/generator/generatePrefixData.js", | ||
"generate": "node lib/generator/generateData.js", | ||
"bundle": "browserify lib/index.js --o dist/prefixer.js && uglifyjs dist/prefixer.js -o dist/prefixer.min.js", | ||
"test": "mocha --recursive --compilers js:babel/register", | ||
"build": "npm run clean && mkdir dist && npm run transpile && npm run generate && npm run bundle", | ||
"postinstall": "npm run generate" | ||
"release": "npm run build && npm publish", | ||
"postinstall": "npm run transpile && npm run generate" | ||
}, | ||
@@ -39,2 +40,3 @@ "repository": { | ||
"dependencies": { | ||
"bowser": "^1.0.0", | ||
"caniuse-api": "^1.3.2", | ||
@@ -45,2 +47,4 @@ "param-case": "^1.1.1" | ||
"babel": "^5.6.14", | ||
"babelify": "^6.3.0", | ||
"browserify": "^11.1.0", | ||
"chai": "^3.2.0", | ||
@@ -47,0 +51,0 @@ "mocha": "^2.2.5", |
@@ -13,2 +13,4 @@ # Autoprefixer for Inline Style objects | ||
See [SupportedProps.md](SupportedProps.md) for detail informaton on supported properties that get evaluated and prefixed. | ||
## Usage | ||
@@ -15,0 +17,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
138470
17
1591
69
3
7
3
5
1
+ Addedbowser@^1.0.0
+ Addedbowser@1.9.4(transitive)