Socket
Socket
Sign inDemoInstall

j2c-plugin-prefix-browser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j2c-plugin-prefix-browser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

dist/j2c-plugin-prefix-browser.amd.js

@@ -580,3 +580,7 @@ define(function () { 'use strict';

decl: function decl(property, value) {
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012) && typeof value === 'string') {
if (!property || !(typeof value === 'string' || typeof value === 'number')){
return next.decl(fixers.properties[property] || fixers.fixProperty(property), value)
}
value = value + '';
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012)) {
value.split(' ').forEach(function(v){

@@ -587,3 +591,3 @@ // recurse! The lack of `next.` is intentional.

});
} else if (property === 'flex-direction' && fixers.flexbox2009 && typeof value === 'string') {
} else if (property === 'flex-direction' && fixers.flexbox2009) {
next.decl(fixers.properties['box-orient'], value.indexOf('column') > -1 ? 'block-axis' : 'inline-axis');

@@ -590,0 +594,0 @@ next.decl(fixers.properties['box-direction'], value.indexOf('-reverse') > -1 ? 'reverse' : 'normal');

@@ -1,1 +0,1 @@

define(function(){"use strict";function e(){b=getComputedStyle(document.documentElement,null),w=document.createElement("div").style,k=document.documentElement.appendChild(document.createElement("style")),S="zIndex"in w?function(e){return e}:n}function r(){"undefined"!=typeof document&&document.documentElement.removeChild(k),b=k=null}function i(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function n(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function t(e,r){return e=S(e),w[e]="",w[e]=r,!!w[e]}function o(e){return k.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(k.sheet.cssRules[0].cssText)}function a(e){return S(e)in w}function l(e){return k.textContent=e+"{}",!!k.sheet.cssRules.length}function s(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!l("@"+n)&&l("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=o("resolution:1dppx"),e.hasPixelRatio=o(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=o(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",o("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function p(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],o=n.property,a=i+"("+n.params+")";!t(o,a)&&t(o,e.prefix+a)&&e.functions.push(i)}}}function f(e){if(""!==e.prefix){for(var r=0;r<P.length;r++){for(var i,n={},o=P[r].props[0],a=0;i=P[r].values[a];a++)!t(o,i)&&t(o,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(a=0;o=P[r].props[a];a++)e.keywords[o]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var l in j)e.properties[l]=j[l],e.keywords[l]=C}else if(e.keywords.display&&e.keywords.display.box&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in R)e.properties[l]=e.prefix+R[l],e.keywords[l]=A}!t("color","initial")&&t("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function u(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(b&&b.length>0)for(var o=0;o<b.length;o++)r(b[o]);else for(var a in b)r(n(a));var l=0;for(var s in t)l<t[s]&&(l=t[s],e.prefix="-"+s+"-");e.Prefix=i(e.prefix)}function c(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!l(i)&&l(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function x(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function d(i){e(),u(i),c(i),s(i),f(i),p(i),r()}function m(e){for(var r,i=[],n=[],t=0;r=M.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function y(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function h(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function g(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=y("",e.selectorList,"(?:\\b|$|[^-])"),o=h("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=y("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=h("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),g=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||E)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(g,v):m(i).map(function(e){return e.replace(g,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function v(){function e(){return{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){"flex-flow"===n&&(r.flexbox2009||r.flexbox2012)&&"string"==typeof t?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009&&"string"==typeof t?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var r=x();"function"==typeof getComputedStyle&&d(r),g(r);var i=[];return e.setFixers=function(n){return i.indexOf(n)===-1&&(g(n),i.push(n)),r=n,e},e}var b,w,k,S,P=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],R={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},A={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},j={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},C={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},E={},M=/[(),]|\/\*[\s\S]*?\*\//g,O=v();return O});
define(function(){"use strict";function e(){b=getComputedStyle(document.documentElement,null),w=document.createElement("div").style,k=document.documentElement.appendChild(document.createElement("style")),S="zIndex"in w?function(e){return e}:n}function r(){"undefined"!=typeof document&&document.documentElement.removeChild(k),b=k=null}function i(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function n(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function t(e,r){return e=S(e),w[e]="",w[e]=r,!!w[e]}function o(e){return k.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(k.sheet.cssRules[0].cssText)}function a(e){return S(e)in w}function l(e){return k.textContent=e+"{}",!!k.sheet.cssRules.length}function s(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!l("@"+n)&&l("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=o("resolution:1dppx"),e.hasPixelRatio=o(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=o(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",o("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function p(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],o=n.property,a=i+"("+n.params+")";!t(o,a)&&t(o,e.prefix+a)&&e.functions.push(i)}}}function f(e){if(""!==e.prefix){for(var r=0;r<P.length;r++){for(var i,n={},o=P[r].props[0],a=0;i=P[r].values[a];a++)!t(o,i)&&t(o,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(a=0;o=P[r].props[a];a++)e.keywords[o]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var l in j)e.properties[l]=j[l],e.keywords[l]=C}else if(e.keywords.display&&e.keywords.display.box&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in R)e.properties[l]=e.prefix+R[l],e.keywords[l]=A}!t("color","initial")&&t("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function u(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(b&&b.length>0)for(var o=0;o<b.length;o++)r(b[o]);else for(var a in b)r(n(a));var l=0;for(var s in t)l<t[s]&&(l=t[s],e.prefix="-"+s+"-");e.Prefix=i(e.prefix)}function c(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!l(i)&&l(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function x(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function d(i){e(),u(i),c(i),s(i),f(i),p(i),r()}function m(e){for(var r,i=[],n=[],t=0;r=M.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function y(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function h(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function g(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=y("",e.selectorList,"(?:\\b|$|[^-])"),o=h("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=y("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=h("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),g=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||E)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(g,v):m(i).map(function(e){return e.replace(g,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function v(){function e(){return{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&(r.flexbox2009||r.flexbox2012)?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var r=x();"function"==typeof getComputedStyle&&d(r),g(r);var i=[];return e.setFixers=function(n){return i.indexOf(n)===-1&&(g(n),i.push(n)),r=n,e},e}var b,w,k,S,P=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],R={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},A={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},j={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},C={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},E={},M=/[(),]|\/\*[\s\S]*?\*\//g,O=v();return O});

@@ -580,3 +580,7 @@ 'use strict';

decl: function decl(property, value) {
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012) && typeof value === 'string') {
if (!property || !(typeof value === 'string' || typeof value === 'number')){
return next.decl(fixers.properties[property] || fixers.fixProperty(property), value)
}
value = value + '';
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012)) {
value.split(' ').forEach(function(v){

@@ -587,3 +591,3 @@ // recurse! The lack of `next.` is intentional.

});
} else if (property === 'flex-direction' && fixers.flexbox2009 && typeof value === 'string') {
} else if (property === 'flex-direction' && fixers.flexbox2009) {
next.decl(fixers.properties['box-orient'], value.indexOf('column') > -1 ? 'block-axis' : 'inline-axis');

@@ -590,0 +594,0 @@ next.decl(fixers.properties['box-direction'], value.indexOf('-reverse') > -1 ? 'reverse' : 'normal');

@@ -1,1 +0,1 @@

"use strict";function init(){allStyles=getComputedStyle(document.documentElement,null),styleAttr=document.createElement("div").style,styleElement=document.documentElement.appendChild(document.createElement("style")),convert="zIndex"in styleAttr?function(e){return e}:deCamelCase}function finalize(){"undefined"!=typeof document&&document.documentElement.removeChild(styleElement),allStyles=styleElement=null}function camelCase(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function deCamelCase(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function supportedDecl(e,r){return e=convert(e),styleAttr[e]="",styleAttr[e]=r,!!styleAttr[e]}function supportedMedia(e){return styleElement.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(styleElement.sheet.cssRules[0].cssText)}function supportedProperty(e){return convert(e)in styleAttr}function supportedRule(e){return styleElement.textContent=e+"{}",!!styleElement.sheet.cssRules.length}function detectAtrules(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var t in r){var i=t+" "+(r[t]||"");!supportedRule("@"+i)&&supportedRule("@"+e.prefix+i)&&(e.hasAtrules=!0,e.atrules["@"+t]="@"+e.prefix+t)}e.hasDppx=supportedMedia("resolution:1dppx"),e.hasPixelRatio=supportedMedia(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=supportedMedia(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",supportedMedia("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function detectFunctions(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var t in r){var i=r[t],n=i.property,l=t+"("+i.params+")";!supportedDecl(n,l)&&supportedDecl(n,e.prefix+l)&&e.functions.push(t)}}}function detectKeywords(e){if(""!==e.prefix){for(var r=0;r<keywords.length;r++){for(var t,i={},n=keywords[r].props[0],l=0;t=keywords[r].values[l];l++)!supportedDecl(n,t)&&supportedDecl(n,e.prefix+t)&&(e.hasKeywords=!0,i[t]=e.prefix+t);for(l=0;n=keywords[r].props[l];l++)e.keywords[n]=i}if(e.keywords.display&&e.keywords.display.flexbox&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var o in flex2012Props)e.properties[o]=flex2012Props[o],e.keywords[o]=flex2012Values}else if(e.keywords.display&&e.keywords.display.box&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(o in flex2009Props)e.properties[o]=e.prefix+flex2009Props[o],e.keywords[o]=flex2009Values}!supportedDecl("color","initial")&&supportedDecl("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function detectPrefix(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(allStyles&&allStyles.length>0)for(var i=0;i<allStyles.length;i++)r(allStyles[i]);else for(var n in allStyles)r(deCamelCase(n));var l=0;for(var o in t)l<t[o]&&(l=t[o],e.prefix="-"+o+"-");e.Prefix=camelCase(e.prefix)}function detectSelectors(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var t,i;if(""!==e.prefix){var n={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(t in n)i=r(t),!supportedRule(t)&&supportedRule(i)&&(e.hasSelectors=!0,e.selectorList.push(n[t]),e.selectorMap[n[t]]=i)}}function blankFixers(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function browserDetector(e){init(),detectPrefix(e),detectSelectors(e),detectAtrules(e),detectKeywords(e),detectFunctions(e),finalize()}function splitValue(e){for(var r,t=[],i=[],n=0;r=valueTokenizer.exec(e);)switch(r[0]){case"(":n++;break;case")":n--;break;case",":if(n)break;t.push(r.index)}for(r=t.length;r--;)i.unshift(e.slice(t[r]+1)),e=e.slice(0,t[r]);return i.unshift(e),i}function makeDetector(e,r,t){return new RegExp(e+"(?:"+r.join("|")+")"+t)}function makeLexer(e,r,t){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+t,"gi")}function finalizeFixers(e){function r(e,r,t){return r+i+t}function t(r,t,i){return"("+(e.properties[t]||e.fixProperty(t))+":"+e.fixValue(i,t)}var i=e.prefix;e.fixProperty=e.fixProperty||function(r){var t;return e.properties[r]=supportedProperty(r)||!supportedProperty(t=i+r)?r:t};var n=makeDetector("",e.selectorList,"(?:\\b|$|[^-])"),l=makeLexer("",e.selectorList,"(?:\\b|$|[^-])"),o=function(r,t){return null!=t?e.selectorMap[t]:r};e.fixSelector=function(e){return n.test(e)?e.replace(l,o):e};var s=e.functions.indexOf("linear-gradient")>-1,a=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,t,i){return r+t+(90-i)+"deg"},f=!!e.functions.length,c=makeDetector("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=makeLexer("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),x=/^\s*([-\w]+)/gi,y=function(r,t){return e.properties[t]||e.fixProperty(t)};e.fixValue=function(t,i){var n;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(n=(e.keywords[i]||emptySet)[t])?n:(n=t,e.valueProperties.hasOwnProperty(i)&&(n=t.indexOf(",")===-1?t.replace(x,y):splitValue(t).map(function(e){return e.replace(x,y)}).join(",")),f&&c.test(t)&&(s&&a.test(t)&&(n=n.replace(p,u)),n=n.replace(d,r)),n)};var m=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,g=e.hasPixelRatio?function(r,t,i){return e.properties[t]+":"+i}:e.hasPixelRatioFraction?function(r,t,i){return e.properties[t]+":"+Math.round(10*i)+"/10"}:function(e,r,t){return r+":"+Math.round(96*t)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(m,g):e};var h=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(h,t)}}function createPrefixPlugin(){function e(){return{$filter:function(e){return{atrule:function(t,i,n,l){e.atrule(r.hasAtrules&&r.atrules[t]||t,i,"@media"===t?r.fixAtMediaParams(n):"@supports"===t?r.fixAtSupportsParams(n):n,l)},decl:function t(i,n){"flex-flow"===i&&(r.flexbox2009||r.flexbox2012)&&"string"==typeof n?n.split(" ").forEach(function(e){e.indexOf("wrap")>-1?t("flex-wrap",e):""!==e&&t("flex-direction",e)}):"flex-direction"===i&&r.flexbox2009&&"string"==typeof n?(e.decl(r.properties["box-orient"],n.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],n.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[i]||r.fixProperty(i),r.fixValue(n,i))},rule:function(t){e.rule(r.hasSelectors?r.fixSelector(t):t)}}}}}var r=blankFixers();"function"==typeof getComputedStyle&&browserDetector(r),finalizeFixers(r);var t=[];return e.setFixers=function(i){return t.indexOf(i)===-1&&(finalizeFixers(i),t.push(i)),r=i,e},e}var allStyles,styleAttr,styleElement,convert,keywords=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],flex2009Props={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},flex2009Values={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},flex2012Props={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},flex2012Values={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},emptySet={},valueTokenizer=/[(),]|\/\*[\s\S]*?\*\//g,plugin=createPrefixPlugin();module.exports=plugin;
"use strict";function init(){allStyles=getComputedStyle(document.documentElement,null),styleAttr=document.createElement("div").style,styleElement=document.documentElement.appendChild(document.createElement("style")),convert="zIndex"in styleAttr?function(e){return e}:deCamelCase}function finalize(){"undefined"!=typeof document&&document.documentElement.removeChild(styleElement),allStyles=styleElement=null}function camelCase(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function deCamelCase(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function supportedDecl(e,r){return e=convert(e),styleAttr[e]="",styleAttr[e]=r,!!styleAttr[e]}function supportedMedia(e){return styleElement.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(styleElement.sheet.cssRules[0].cssText)}function supportedProperty(e){return convert(e)in styleAttr}function supportedRule(e){return styleElement.textContent=e+"{}",!!styleElement.sheet.cssRules.length}function detectAtrules(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var t in r){var i=t+" "+(r[t]||"");!supportedRule("@"+i)&&supportedRule("@"+e.prefix+i)&&(e.hasAtrules=!0,e.atrules["@"+t]="@"+e.prefix+t)}e.hasDppx=supportedMedia("resolution:1dppx"),e.hasPixelRatio=supportedMedia(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=supportedMedia(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",supportedMedia("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function detectFunctions(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var t in r){var i=r[t],n=i.property,l=t+"("+i.params+")";!supportedDecl(n,l)&&supportedDecl(n,e.prefix+l)&&e.functions.push(t)}}}function detectKeywords(e){if(""!==e.prefix){for(var r=0;r<keywords.length;r++){for(var t,i={},n=keywords[r].props[0],l=0;t=keywords[r].values[l];l++)!supportedDecl(n,t)&&supportedDecl(n,e.prefix+t)&&(e.hasKeywords=!0,i[t]=e.prefix+t);for(l=0;n=keywords[r].props[l];l++)e.keywords[n]=i}if(e.keywords.display&&e.keywords.display.flexbox&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var o in flex2012Props)e.properties[o]=flex2012Props[o],e.keywords[o]=flex2012Values}else if(e.keywords.display&&e.keywords.display.box&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(o in flex2009Props)e.properties[o]=e.prefix+flex2009Props[o],e.keywords[o]=flex2009Values}!supportedDecl("color","initial")&&supportedDecl("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function detectPrefix(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(allStyles&&allStyles.length>0)for(var i=0;i<allStyles.length;i++)r(allStyles[i]);else for(var n in allStyles)r(deCamelCase(n));var l=0;for(var o in t)l<t[o]&&(l=t[o],e.prefix="-"+o+"-");e.Prefix=camelCase(e.prefix)}function detectSelectors(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var t,i;if(""!==e.prefix){var n={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(t in n)i=r(t),!supportedRule(t)&&supportedRule(i)&&(e.hasSelectors=!0,e.selectorList.push(n[t]),e.selectorMap[n[t]]=i)}}function blankFixers(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function browserDetector(e){init(),detectPrefix(e),detectSelectors(e),detectAtrules(e),detectKeywords(e),detectFunctions(e),finalize()}function splitValue(e){for(var r,t=[],i=[],n=0;r=valueTokenizer.exec(e);)switch(r[0]){case"(":n++;break;case")":n--;break;case",":if(n)break;t.push(r.index)}for(r=t.length;r--;)i.unshift(e.slice(t[r]+1)),e=e.slice(0,t[r]);return i.unshift(e),i}function makeDetector(e,r,t){return new RegExp(e+"(?:"+r.join("|")+")"+t)}function makeLexer(e,r,t){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+t,"gi")}function finalizeFixers(e){function r(e,r,t){return r+i+t}function t(r,t,i){return"("+(e.properties[t]||e.fixProperty(t))+":"+e.fixValue(i,t)}var i=e.prefix;e.fixProperty=e.fixProperty||function(r){var t;return e.properties[r]=supportedProperty(r)||!supportedProperty(t=i+r)?r:t};var n=makeDetector("",e.selectorList,"(?:\\b|$|[^-])"),l=makeLexer("",e.selectorList,"(?:\\b|$|[^-])"),o=function(r,t){return null!=t?e.selectorMap[t]:r};e.fixSelector=function(e){return n.test(e)?e.replace(l,o):e};var s=e.functions.indexOf("linear-gradient")>-1,a=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,t,i){return r+t+(90-i)+"deg"},f=!!e.functions.length,c=makeDetector("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=makeLexer("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),x=/^\s*([-\w]+)/gi,y=function(r,t){return e.properties[t]||e.fixProperty(t)};e.fixValue=function(t,i){var n;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(n=(e.keywords[i]||emptySet)[t])?n:(n=t,e.valueProperties.hasOwnProperty(i)&&(n=t.indexOf(",")===-1?t.replace(x,y):splitValue(t).map(function(e){return e.replace(x,y)}).join(",")),f&&c.test(t)&&(s&&a.test(t)&&(n=n.replace(p,u)),n=n.replace(d,r)),n)};var m=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,g=e.hasPixelRatio?function(r,t,i){return e.properties[t]+":"+i}:e.hasPixelRatioFraction?function(r,t,i){return e.properties[t]+":"+Math.round(10*i)+"/10"}:function(e,r,t){return r+":"+Math.round(96*t)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(m,g):e};var h=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(h,t)}}function createPrefixPlugin(){function e(){return{$filter:function(e){return{atrule:function(t,i,n,l){e.atrule(r.hasAtrules&&r.atrules[t]||t,i,"@media"===t?r.fixAtMediaParams(n):"@supports"===t?r.fixAtSupportsParams(n):n,l)},decl:function t(i,n){return!i||"string"!=typeof n&&"number"!=typeof n?e.decl(r.properties[i]||r.fixProperty(i),n):(n+="",void("flex-flow"===i&&(r.flexbox2009||r.flexbox2012)?n.split(" ").forEach(function(e){e.indexOf("wrap")>-1?t("flex-wrap",e):""!==e&&t("flex-direction",e)}):"flex-direction"===i&&r.flexbox2009?(e.decl(r.properties["box-orient"],n.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],n.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[i]||r.fixProperty(i),r.fixValue(n,i))))},rule:function(t){e.rule(r.hasSelectors?r.fixSelector(t):t)}}}}}var r=blankFixers();"function"==typeof getComputedStyle&&browserDetector(r),finalizeFixers(r);var t=[];return e.setFixers=function(i){return t.indexOf(i)===-1&&(finalizeFixers(i),t.push(i)),r=i,e},e}var allStyles,styleAttr,styleElement,convert,keywords=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],flex2009Props={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},flex2009Values={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},flex2012Props={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},flex2012Values={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},emptySet={},valueTokenizer=/[(),]|\/\*[\s\S]*?\*\//g,plugin=createPrefixPlugin();module.exports=plugin;

@@ -581,3 +581,7 @@ var j2cPrefixPluginBrowser = (function () {

decl: function decl(property, value) {
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012) && typeof value === 'string') {
if (!property || !(typeof value === 'string' || typeof value === 'number')){
return next.decl(fixers.properties[property] || fixers.fixProperty(property), value)
}
value = value + '';
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012)) {
value.split(' ').forEach(function(v){

@@ -588,3 +592,3 @@ // recurse! The lack of `next.` is intentional.

});
} else if (property === 'flex-direction' && fixers.flexbox2009 && typeof value === 'string') {
} else if (property === 'flex-direction' && fixers.flexbox2009) {
next.decl(fixers.properties['box-orient'], value.indexOf('column') > -1 ? 'block-axis' : 'inline-axis');

@@ -591,0 +595,0 @@ next.decl(fixers.properties['box-direction'], value.indexOf('-reverse') > -1 ? 'reverse' : 'normal');

@@ -1,1 +0,1 @@

var j2cPrefixPluginBrowser=function(){"use strict";function e(){b=getComputedStyle(document.documentElement,null),w=document.createElement("div").style,k=document.documentElement.appendChild(document.createElement("style")),S="zIndex"in w?function(e){return e}:n}function r(){"undefined"!=typeof document&&document.documentElement.removeChild(k),b=k=null}function i(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function n(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function t(e,r){return e=S(e),w[e]="",w[e]=r,!!w[e]}function o(e){return k.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(k.sheet.cssRules[0].cssText)}function a(e){return S(e)in w}function l(e){return k.textContent=e+"{}",!!k.sheet.cssRules.length}function s(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!l("@"+n)&&l("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=o("resolution:1dppx"),e.hasPixelRatio=o(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=o(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",o("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function p(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],o=n.property,a=i+"("+n.params+")";!t(o,a)&&t(o,e.prefix+a)&&e.functions.push(i)}}}function f(e){if(""!==e.prefix){for(var r=0;r<P.length;r++){for(var i,n={},o=P[r].props[0],a=0;i=P[r].values[a];a++)!t(o,i)&&t(o,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(a=0;o=P[r].props[a];a++)e.keywords[o]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var l in j)e.properties[l]=j[l],e.keywords[l]=C}else if(e.keywords.display&&e.keywords.display.box&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in R)e.properties[l]=e.prefix+R[l],e.keywords[l]=A}!t("color","initial")&&t("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function u(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(b&&b.length>0)for(var o=0;o<b.length;o++)r(b[o]);else for(var a in b)r(n(a));var l=0;for(var s in t)l<t[s]&&(l=t[s],e.prefix="-"+s+"-");e.Prefix=i(e.prefix)}function c(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!l(i)&&l(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function x(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function d(i){e(),u(i),c(i),s(i),f(i),p(i),r()}function m(e){for(var r,i=[],n=[],t=0;r=M.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function y(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function h(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function g(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=y("",e.selectorList,"(?:\\b|$|[^-])"),o=h("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=y("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=h("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),g=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||E)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(g,v):m(i).map(function(e){return e.replace(g,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function v(){function e(){return{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){"flex-flow"===n&&(r.flexbox2009||r.flexbox2012)&&"string"==typeof t?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009&&"string"==typeof t?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var r=x();"function"==typeof getComputedStyle&&d(r),g(r);var i=[];return e.setFixers=function(n){return i.indexOf(n)===-1&&(g(n),i.push(n)),r=n,e},e}var b,w,k,S,P=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],R={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},A={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},j={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},C={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},E={},M=/[(),]|\/\*[\s\S]*?\*\//g,O=v();return O}();
var j2cPrefixPluginBrowser=function(){"use strict";function e(){b=getComputedStyle(document.documentElement,null),w=document.createElement("div").style,k=document.documentElement.appendChild(document.createElement("style")),S="zIndex"in w?function(e){return e}:n}function r(){"undefined"!=typeof document&&document.documentElement.removeChild(k),b=k=null}function i(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function n(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function t(e,r){return e=S(e),w[e]="",w[e]=r,!!w[e]}function o(e){return k.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(k.sheet.cssRules[0].cssText)}function a(e){return S(e)in w}function l(e){return k.textContent=e+"{}",!!k.sheet.cssRules.length}function s(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!l("@"+n)&&l("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=o("resolution:1dppx"),e.hasPixelRatio=o(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=o(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",o("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function p(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],o=n.property,a=i+"("+n.params+")";!t(o,a)&&t(o,e.prefix+a)&&e.functions.push(i)}}}function f(e){if(""!==e.prefix){for(var r=0;r<P.length;r++){for(var i,n={},o=P[r].props[0],a=0;i=P[r].values[a];a++)!t(o,i)&&t(o,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(a=0;o=P[r].props[a];a++)e.keywords[o]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"],e.flexbox2012=!0;for(var l in j)e.properties[l]=j[l],e.keywords[l]=C}else if(e.keywords.display&&e.keywords.display.box&&!t("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in R)e.properties[l]=e.prefix+R[l],e.keywords[l]=A}!t("color","initial")&&t("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function u(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(b&&b.length>0)for(var o=0;o<b.length;o++)r(b[o]);else for(var a in b)r(n(a));var l=0;for(var s in t)l<t[s]&&(l=t[s],e.prefix="-"+s+"-");e.Prefix=i(e.prefix)}function c(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!l(i)&&l(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function x(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,flexbox2012:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function d(i){e(),u(i),c(i),s(i),f(i),p(i),r()}function m(e){for(var r,i=[],n=[],t=0;r=M.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function y(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function h(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function g(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=y("",e.selectorList,"(?:\\b|$|[^-])"),o=h("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=y("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=h("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),g=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||E)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(g,v):m(i).map(function(e){return e.replace(g,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function v(){function e(){return{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&(r.flexbox2009||r.flexbox2012)?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var r=x();"function"==typeof getComputedStyle&&d(r),g(r);var i=[];return e.setFixers=function(n){return i.indexOf(n)===-1&&(g(n),i.push(n)),r=n,e},e}var b,w,k,S,P=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],R={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},A={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},j={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},C={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},E={},M=/[(),]|\/\*[\s\S]*?\*\//g,O=v();return O}();
{
"name": "j2c-plugin-prefix-browser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Vendor prefix handling for j2c in the browser, built on top of Lea Verou's PrefixFree",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,3 +37,7 @@ import {blankFixers, browserDetector, finalizeFixers} from './fixers.js'

decl: function decl(property, value) {
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012) && typeof value === 'string') {
if (!property || !(typeof value === 'string' || typeof value === 'number')){
return next.decl(fixers.properties[property] || fixers.fixProperty(property), value)
}
value = value + ''
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012)) {
value.split(' ').forEach(function(v){

@@ -44,3 +48,3 @@ // recurse! The lack of `next.` is intentional.

})
} else if (property === 'flex-direction' && fixers.flexbox2009 && typeof value === 'string') {
} else if (property === 'flex-direction' && fixers.flexbox2009) {
next.decl(fixers.properties['box-orient'], value.indexOf('column') > -1 ? 'block-axis' : 'inline-axis')

@@ -47,0 +51,0 @@ next.decl(fixers.properties['box-direction'], value.indexOf('-reverse') > -1 ? 'reverse' : 'normal')

@@ -590,3 +590,7 @@ // This file is generated by `../script/build.js`, from `./_exposed.es6.js`

decl: function decl(property, value) {
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012) && typeof value === 'string') {
if (!property || !(typeof value === 'string' || typeof value === 'number')){
return next.decl(fixers.properties[property] || fixers.fixProperty(property), value)
}
value = value + '';
if (property === 'flex-flow' && (fixers.flexbox2009 || fixers.flexbox2012)) {
value.split(' ').forEach(function(v){

@@ -597,3 +601,3 @@ // recurse! The lack of `next.` is intentional.

});
} else if (property === 'flex-direction' && fixers.flexbox2009 && typeof value === 'string') {
} else if (property === 'flex-direction' && fixers.flexbox2009) {
next.decl(fixers.properties['box-orient'], value.indexOf('column') > -1 ? 'block-axis' : 'inline-axis');

@@ -600,0 +604,0 @@ next.decl(fixers.properties['box-direction'], value.indexOf('-reverse') > -1 ? 'reverse' : 'normal');

@@ -5,3 +5,26 @@ var o = require('../test-utils/ospec-instance')

var cleanupIfNeeded = require('../test-utils/misc').cleanupIfNeeded
var exposed = require('../test-utils/exposed')
var makeSink = require('../test-utils/misc').makeSink
var mocks = require('../test-utils/mocks')
var blankFixers = exposed.blankFixers
var createPrefixPlugin = exposed.createPrefixPlugin
var hasCleanState = exposed.hasCleanState
var referenceFixers = Object.keys(blankFixers())
o.spec('plugin misc tests', function() {
var fixers
o.beforeEach(function() {
o(hasCleanState()).equals(true)('detector utils state isn\'t clean')
fixers = blankFixers()
})
o.afterEach(function() {
cleanupIfNeeded(exposed)
o(Object.keys(fixers)).deepEquals(referenceFixers)
fixers = null
})
o('build up to date', function() {

@@ -12,2 +35,25 @@ o(upToDate(__dirname, '../src/plugin.js')).equals(true)

})
o('handles raw declarations and bad values gracefully', function() {
mocks(global, {properties: {'-o-foo': 'bar'}})
fixers.prefix = '-o-'
var plugin = createPrefixPlugin().setFixers(fixers)
var sink = makeSink()
var methods = plugin().$filter(sink)
o(fixers.properties).deepEquals({})
methods.decl('foo', 5)
methods.decl('', 'qux')
o(sink.buffer).deepEquals([
['decl', '-o-foo', '5'],
['decl', '', 'qux']
])
o(fixers.properties).deepEquals({
'foo': '-o-foo', '': ''
})
})
})

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc