From 37187cc5040c5a56eba32c7bb1aa776608f9ac54 Mon Sep 17 00:00:00 2001 From: vistaswx Date: Sun, 27 Jan 2013 20:14:28 +0800 Subject: [PATCH 1/2] fixed a bug in prefixing properties --- prefixfree.js | 2 +- prefixfree.min.js | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/prefixfree.js b/prefixfree.js index e06b7133..009ed832 100755 --- a/prefixfree.js +++ b/prefixfree.js @@ -212,7 +212,7 @@ var self = window.PrefixFree = { if (self.properties.length) { var regex = RegExp('\\b(' + self.properties.join('|') + ')(?!:)', 'gi'); - css = fix('valueProperties', '\\b', ':(.+?);', function($0) { + css = fix('valueProperties', '\\b', ':(.+?)[;|}]', function($0) { return $0.replace(regex, prefix + "$1") }, css); } diff --git a/prefixfree.min.js b/prefixfree.min.js index 13d93665..82cb5cd8 100644 --- a/prefixfree.min.js +++ b/prefixfree.min.js @@ -3,15 +3,4 @@ * @author Lea Verou * MIT license */ -(function(){function j(a,c){return[].slice.call((c||document).querySelectorAll(a))}if(window.addEventListener){var g=window.StyleFix={link:function(a){try{if("stylesheet"!==a.rel||a.hasAttribute("data-noprefix"))return}catch(c){return}var i=a.href||a.getAttribute("data-href"),f=i.replace(/[^\/]+$/,""),j=(/^[a-z]{3,10}:/.exec(f)||[""])[0],k=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(f)||[""])[0],h=/^([^?]*)\??/.exec(i)[1],n=a.parentNode,e=new XMLHttpRequest,b;e.onreadystatechange=function(){4===e.readyState&& -b()};b=function(){var c=e.responseText;if(c&&a.parentNode&&(!e.status||400>e.status||600j.status||j.status>600)){if(c=a.fix(c,!0,b),e){c=c.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(a,b,c){return/^([a-z]{3,10}:|#)/i.test(c)?a:/^\/\//.test(c)?'url("'+f+c+'")':/^\//.test(c)?'url("'+g+c+'")':/^\?/.test(c)?'url("'+h+c+'")':'url("'+e+c+'")'});var d=e.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");c=c.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+d,"gi"),"$1")}var k=document.createElement("style");k.textContent=c,k.media=b.media,k.disabled=b.disabled,k.setAttribute("data-href",b.getAttribute("href")),i.insertBefore(k,b),i.removeChild(b),k.media=b.media}};try{j.open("GET",d),j.send(null)}catch(c){"undefined"!=typeof XDomainRequest&&(j=new XDomainRequest,j.onerror=j.onprogress=function(){},j.onload=k,j.open("GET",d),j.send(null))}b.setAttribute("data-inprogress","")},styleElement:function(b){if(!b.hasAttribute("data-noprefix")){var c=b.disabled;b.textContent=a.fix(b.textContent,!0,b),b.disabled=c}},styleAttribute:function(b){var c=b.getAttribute("style");c=a.fix(c,!1,b),b.setAttribute("style",c)},process:function(){b('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link),b("style").forEach(StyleFix.styleElement),b("[style]").forEach(StyleFix.styleAttribute)},register:function(b,c){(a.fixers=a.fixers||[]).splice(void 0===c?a.fixers.length:c,0,b)},fix:function(b,c,d){for(var e=0;a.fixers.length>e;e++)b=a.fixers[e](b,c,d)||b;return b},camelCase:function(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()}).replace("-","")},deCamelCase:function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}};(function(){setTimeout(function(){b('link[rel="stylesheet"]').forEach(StyleFix.link)},10),document.addEventListener("DOMContentLoaded",StyleFix.process,!1)})()}})(),function(a){function b(a,b,d,e,f){if(a=c[a],a.length){var g=RegExp(b+"("+a.join("|")+")"+d,"gi");f=f.replace(g,e)}return f}if(window.StyleFix&&window.getComputedStyle){var c=window.PrefixFree={prefixCSS:function(a,d){var f=c.prefix;if(c.functions.indexOf("linear-gradient")>-1&&(a=a.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(a,b,c,d){return b+(c||"")+"linear-gradient("+(90-d)+"deg"})),a=b("functions","(\\s|:|,)","\\s*\\(","$1"+f+"$2(",a),a=b("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+f+"$2$3",a),a=b("properties","(^|\\{|\\s|;)","\\s*:","$1"+f+"$2:",a),c.properties.length){var g=RegExp("\\b("+c.properties.join("|")+")(?!:)","gi");a=b("valueProperties","\\b",":(.+?)[;|}]",function(a){return a.replace(g,f+"$1")},a)}return d&&(a=b("selectors","","\\b",c.prefixSelector,a),a=b("atrules","@","\\b","@"+f+"$1",a)),a=a.replace(RegExp("-"+f,"g"),"-"),a=a.replace(/-\*-(?=[a-z]+)/gi,c.prefix)},property:function(a){return(c.properties.indexOf(a)?c.prefix:"")+a},value:function(a){return a=b("functions","(^|\\s|,)","\\s*\\(","$1"+c.prefix+"$2(",a),a=b("keywords","(^|\\s)","(\\s|$)","$1"+c.prefix+"$2$3",a)},prefixSelector:function(a){return a.replace(/^:{1,2}/,function(a){return a+c.prefix})},prefixProperty:function(a,b){var d=c.prefix+a;return b?StyleFix.camelCase(d):d}};(function(){var a={},b=[],e=getComputedStyle(document.documentElement,null),f=document.createElement("div").style,g=function(c){if("-"===c.charAt(0)){b.push(c);var d=c.split("-"),e=d[1];for(a[e]=++a[e]||1;d.length>3;){d.pop();var f=d.join("-");h(f)&&-1===b.indexOf(f)&&b.push(f)}}},h=function(a){return StyleFix.camelCase(a)in f};if(e.length>0)for(var i=0;e.length>i;i++)g(e[i]);else for(var j in e)g(StyleFix.deCamelCase(j));var k={uses:0};for(var l in a){var m=a[l];m>k.uses&&(k={prefix:l,uses:m})}c.prefix="-"+k.prefix+"-",c.Prefix=StyleFix.camelCase(c.prefix),c.properties=[];for(var i=0;b.length>i;i++){var j=b[i];if(0===j.indexOf(c.prefix)){var n=j.slice(c.prefix.length);h(n)||c.properties.push(n)}}"Ms"!=c.Prefix||"transform"in f||"MsTransform"in f||!("msTransform"in f)||c.properties.push("transform","transform-origin"),c.properties.sort()})(),function(){function e(a,b){return d[b]="",d[b]=a,!!d[b]}var a={"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%"}};a["repeating-linear-gradient"]=a["repeating-radial-gradient"]=a["radial-gradient"]=a["linear-gradient"];var b={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display"};c.functions=[],c.keywords=[];var d=document.createElement("div").style;for(var f in a){var g=a[f],h=g.property,i=f+"("+g.params+")";!e(i,h)&&e(c.prefix+i,h)&&c.functions.push(f)}for(var j in b){var h=b[j];!e(j,h)&&e(c.prefix+j,h)&&c.keywords.push(j)}}(),function(){function f(a){return e.textContent=a+"{}",!!e.sheet.cssRules.length}var b={":read-only":null,":read-write":null,":any-link":null,"::selection":null},d={keyframes:"name",viewport:null,document:'regexp(".")'};c.selectors=[],c.atrules=[];var e=a.appendChild(document.createElement("style"));for(var g in b){var h=g+(b[g]?"("+b[g]+")":"");!f(h)&&f(c.prefixSelector(h))&&c.selectors.push(g)}for(var i in d){var h=i+" "+(d[i]||"");!f("@"+h)&&f("@"+c.prefix+h)&&c.atrules.push(i)}a.removeChild(e)}(),c.valueProperties=["transition","transition-property"],a.className+=" "+c.prefix,StyleFix.register(c.prefixCSS)}}(document.documentElement); \ No newline at end of file From 84e3bc8d7e679778c20dc11e733b58b719ed915f Mon Sep 17 00:00:00 2001 From: vistaswx Date: Mon, 28 Jan 2013 08:54:38 +0800 Subject: [PATCH 2/2] a small change --- prefixfree.js | 2 +- prefixfree.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prefixfree.js b/prefixfree.js index 009ed832..89cbb72d 100755 --- a/prefixfree.js +++ b/prefixfree.js @@ -212,7 +212,7 @@ var self = window.PrefixFree = { if (self.properties.length) { var regex = RegExp('\\b(' + self.properties.join('|') + ')(?!:)', 'gi'); - css = fix('valueProperties', '\\b', ':(.+?)[;|}]', function($0) { + css = fix('valueProperties', '\\b', ':(.+?)[;}]', function($0) { return $0.replace(regex, prefix + "$1") }, css); } diff --git a/prefixfree.min.js b/prefixfree.min.js index 82cb5cd8..eacd3faa 100644 --- a/prefixfree.min.js +++ b/prefixfree.min.js @@ -3,4 +3,4 @@ * @author Lea Verou * MIT license */ -(function(){function b(a,b){return[].slice.call((b||document).querySelectorAll(a))}if(window.addEventListener){var a=window.StyleFix={link:function(b){try{if("stylesheet"!==b.rel||b.hasAttribute("data-noprefix"))return}catch(c){return}var k,d=b.href||b.getAttribute("data-href"),e=d.replace(/[^\/]+$/,""),f=(/^[a-z]{3,10}:/.exec(e)||[""])[0],g=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(e)||[""])[0],h=/^([^?]*)\??/.exec(d)[1],i=b.parentNode,j=new XMLHttpRequest;j.onreadystatechange=function(){4===j.readyState&&k()},k=function(){var c=j.responseText;if(c&&b.parentNode&&(!j.status||400>j.status||j.status>600)){if(c=a.fix(c,!0,b),e){c=c.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(a,b,c){return/^([a-z]{3,10}:|#)/i.test(c)?a:/^\/\//.test(c)?'url("'+f+c+'")':/^\//.test(c)?'url("'+g+c+'")':/^\?/.test(c)?'url("'+h+c+'")':'url("'+e+c+'")'});var d=e.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");c=c.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+d,"gi"),"$1")}var k=document.createElement("style");k.textContent=c,k.media=b.media,k.disabled=b.disabled,k.setAttribute("data-href",b.getAttribute("href")),i.insertBefore(k,b),i.removeChild(b),k.media=b.media}};try{j.open("GET",d),j.send(null)}catch(c){"undefined"!=typeof XDomainRequest&&(j=new XDomainRequest,j.onerror=j.onprogress=function(){},j.onload=k,j.open("GET",d),j.send(null))}b.setAttribute("data-inprogress","")},styleElement:function(b){if(!b.hasAttribute("data-noprefix")){var c=b.disabled;b.textContent=a.fix(b.textContent,!0,b),b.disabled=c}},styleAttribute:function(b){var c=b.getAttribute("style");c=a.fix(c,!1,b),b.setAttribute("style",c)},process:function(){b('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link),b("style").forEach(StyleFix.styleElement),b("[style]").forEach(StyleFix.styleAttribute)},register:function(b,c){(a.fixers=a.fixers||[]).splice(void 0===c?a.fixers.length:c,0,b)},fix:function(b,c,d){for(var e=0;a.fixers.length>e;e++)b=a.fixers[e](b,c,d)||b;return b},camelCase:function(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()}).replace("-","")},deCamelCase:function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}};(function(){setTimeout(function(){b('link[rel="stylesheet"]').forEach(StyleFix.link)},10),document.addEventListener("DOMContentLoaded",StyleFix.process,!1)})()}})(),function(a){function b(a,b,d,e,f){if(a=c[a],a.length){var g=RegExp(b+"("+a.join("|")+")"+d,"gi");f=f.replace(g,e)}return f}if(window.StyleFix&&window.getComputedStyle){var c=window.PrefixFree={prefixCSS:function(a,d){var f=c.prefix;if(c.functions.indexOf("linear-gradient")>-1&&(a=a.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(a,b,c,d){return b+(c||"")+"linear-gradient("+(90-d)+"deg"})),a=b("functions","(\\s|:|,)","\\s*\\(","$1"+f+"$2(",a),a=b("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+f+"$2$3",a),a=b("properties","(^|\\{|\\s|;)","\\s*:","$1"+f+"$2:",a),c.properties.length){var g=RegExp("\\b("+c.properties.join("|")+")(?!:)","gi");a=b("valueProperties","\\b",":(.+?)[;|}]",function(a){return a.replace(g,f+"$1")},a)}return d&&(a=b("selectors","","\\b",c.prefixSelector,a),a=b("atrules","@","\\b","@"+f+"$1",a)),a=a.replace(RegExp("-"+f,"g"),"-"),a=a.replace(/-\*-(?=[a-z]+)/gi,c.prefix)},property:function(a){return(c.properties.indexOf(a)?c.prefix:"")+a},value:function(a){return a=b("functions","(^|\\s|,)","\\s*\\(","$1"+c.prefix+"$2(",a),a=b("keywords","(^|\\s)","(\\s|$)","$1"+c.prefix+"$2$3",a)},prefixSelector:function(a){return a.replace(/^:{1,2}/,function(a){return a+c.prefix})},prefixProperty:function(a,b){var d=c.prefix+a;return b?StyleFix.camelCase(d):d}};(function(){var a={},b=[],e=getComputedStyle(document.documentElement,null),f=document.createElement("div").style,g=function(c){if("-"===c.charAt(0)){b.push(c);var d=c.split("-"),e=d[1];for(a[e]=++a[e]||1;d.length>3;){d.pop();var f=d.join("-");h(f)&&-1===b.indexOf(f)&&b.push(f)}}},h=function(a){return StyleFix.camelCase(a)in f};if(e.length>0)for(var i=0;e.length>i;i++)g(e[i]);else for(var j in e)g(StyleFix.deCamelCase(j));var k={uses:0};for(var l in a){var m=a[l];m>k.uses&&(k={prefix:l,uses:m})}c.prefix="-"+k.prefix+"-",c.Prefix=StyleFix.camelCase(c.prefix),c.properties=[];for(var i=0;b.length>i;i++){var j=b[i];if(0===j.indexOf(c.prefix)){var n=j.slice(c.prefix.length);h(n)||c.properties.push(n)}}"Ms"!=c.Prefix||"transform"in f||"MsTransform"in f||!("msTransform"in f)||c.properties.push("transform","transform-origin"),c.properties.sort()})(),function(){function e(a,b){return d[b]="",d[b]=a,!!d[b]}var a={"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%"}};a["repeating-linear-gradient"]=a["repeating-radial-gradient"]=a["radial-gradient"]=a["linear-gradient"];var b={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display"};c.functions=[],c.keywords=[];var d=document.createElement("div").style;for(var f in a){var g=a[f],h=g.property,i=f+"("+g.params+")";!e(i,h)&&e(c.prefix+i,h)&&c.functions.push(f)}for(var j in b){var h=b[j];!e(j,h)&&e(c.prefix+j,h)&&c.keywords.push(j)}}(),function(){function f(a){return e.textContent=a+"{}",!!e.sheet.cssRules.length}var b={":read-only":null,":read-write":null,":any-link":null,"::selection":null},d={keyframes:"name",viewport:null,document:'regexp(".")'};c.selectors=[],c.atrules=[];var e=a.appendChild(document.createElement("style"));for(var g in b){var h=g+(b[g]?"("+b[g]+")":"");!f(h)&&f(c.prefixSelector(h))&&c.selectors.push(g)}for(var i in d){var h=i+" "+(d[i]||"");!f("@"+h)&&f("@"+c.prefix+h)&&c.atrules.push(i)}a.removeChild(e)}(),c.valueProperties=["transition","transition-property"],a.className+=" "+c.prefix,StyleFix.register(c.prefixCSS)}}(document.documentElement); \ No newline at end of file +(function(){function b(a,b){return[].slice.call((b||document).querySelectorAll(a))}if(window.addEventListener){var a=window.StyleFix={link:function(b){try{if("stylesheet"!==b.rel||b.hasAttribute("data-noprefix"))return}catch(c){return}var k,d=b.href||b.getAttribute("data-href"),e=d.replace(/[^\/]+$/,""),f=(/^[a-z]{3,10}:/.exec(e)||[""])[0],g=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(e)||[""])[0],h=/^([^?]*)\??/.exec(d)[1],i=b.parentNode,j=new XMLHttpRequest;j.onreadystatechange=function(){4===j.readyState&&k()},k=function(){var c=j.responseText;if(c&&b.parentNode&&(!j.status||400>j.status||j.status>600)){if(c=a.fix(c,!0,b),e){c=c.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(a,b,c){return/^([a-z]{3,10}:|#)/i.test(c)?a:/^\/\//.test(c)?'url("'+f+c+'")':/^\//.test(c)?'url("'+g+c+'")':/^\?/.test(c)?'url("'+h+c+'")':'url("'+e+c+'")'});var d=e.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");c=c.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+d,"gi"),"$1")}var k=document.createElement("style");k.textContent=c,k.media=b.media,k.disabled=b.disabled,k.setAttribute("data-href",b.getAttribute("href")),i.insertBefore(k,b),i.removeChild(b),k.media=b.media}};try{j.open("GET",d),j.send(null)}catch(c){"undefined"!=typeof XDomainRequest&&(j=new XDomainRequest,j.onerror=j.onprogress=function(){},j.onload=k,j.open("GET",d),j.send(null))}b.setAttribute("data-inprogress","")},styleElement:function(b){if(!b.hasAttribute("data-noprefix")){var c=b.disabled;b.textContent=a.fix(b.textContent,!0,b),b.disabled=c}},styleAttribute:function(b){var c=b.getAttribute("style");c=a.fix(c,!1,b),b.setAttribute("style",c)},process:function(){b('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link),b("style").forEach(StyleFix.styleElement),b("[style]").forEach(StyleFix.styleAttribute)},register:function(b,c){(a.fixers=a.fixers||[]).splice(void 0===c?a.fixers.length:c,0,b)},fix:function(b,c,d){for(var e=0;a.fixers.length>e;e++)b=a.fixers[e](b,c,d)||b;return b},camelCase:function(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()}).replace("-","")},deCamelCase:function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}};(function(){setTimeout(function(){b('link[rel="stylesheet"]').forEach(StyleFix.link)},10),document.addEventListener("DOMContentLoaded",StyleFix.process,!1)})()}})(),function(a){function b(a,b,d,e,f){if(a=c[a],a.length){var g=RegExp(b+"("+a.join("|")+")"+d,"gi");f=f.replace(g,e)}return f}if(window.StyleFix&&window.getComputedStyle){var c=window.PrefixFree={prefixCSS:function(a,d){var f=c.prefix;if(c.functions.indexOf("linear-gradient")>-1&&(a=a.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(a,b,c,d){return b+(c||"")+"linear-gradient("+(90-d)+"deg"})),a=b("functions","(\\s|:|,)","\\s*\\(","$1"+f+"$2(",a),a=b("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+f+"$2$3",a),a=b("properties","(^|\\{|\\s|;)","\\s*:","$1"+f+"$2:",a),c.properties.length){var g=RegExp("\\b("+c.properties.join("|")+")(?!:)","gi");a=b("valueProperties","\\b",":(.+?)[;}]",function(a){return a.replace(g,f+"$1")},a)}return d&&(a=b("selectors","","\\b",c.prefixSelector,a),a=b("atrules","@","\\b","@"+f+"$1",a)),a=a.replace(RegExp("-"+f,"g"),"-"),a=a.replace(/-\*-(?=[a-z]+)/gi,c.prefix)},property:function(a){return(c.properties.indexOf(a)?c.prefix:"")+a},value:function(a){return a=b("functions","(^|\\s|,)","\\s*\\(","$1"+c.prefix+"$2(",a),a=b("keywords","(^|\\s)","(\\s|$)","$1"+c.prefix+"$2$3",a)},prefixSelector:function(a){return a.replace(/^:{1,2}/,function(a){return a+c.prefix})},prefixProperty:function(a,b){var d=c.prefix+a;return b?StyleFix.camelCase(d):d}};(function(){var a={},b=[],e=getComputedStyle(document.documentElement,null),f=document.createElement("div").style,g=function(c){if("-"===c.charAt(0)){b.push(c);var d=c.split("-"),e=d[1];for(a[e]=++a[e]||1;d.length>3;){d.pop();var f=d.join("-");h(f)&&-1===b.indexOf(f)&&b.push(f)}}},h=function(a){return StyleFix.camelCase(a)in f};if(e.length>0)for(var i=0;e.length>i;i++)g(e[i]);else for(var j in e)g(StyleFix.deCamelCase(j));var k={uses:0};for(var l in a){var m=a[l];m>k.uses&&(k={prefix:l,uses:m})}c.prefix="-"+k.prefix+"-",c.Prefix=StyleFix.camelCase(c.prefix),c.properties=[];for(var i=0;b.length>i;i++){var j=b[i];if(0===j.indexOf(c.prefix)){var n=j.slice(c.prefix.length);h(n)||c.properties.push(n)}}"Ms"!=c.Prefix||"transform"in f||"MsTransform"in f||!("msTransform"in f)||c.properties.push("transform","transform-origin"),c.properties.sort()})(),function(){function e(a,b){return d[b]="",d[b]=a,!!d[b]}var a={"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%"}};a["repeating-linear-gradient"]=a["repeating-radial-gradient"]=a["radial-gradient"]=a["linear-gradient"];var b={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display"};c.functions=[],c.keywords=[];var d=document.createElement("div").style;for(var f in a){var g=a[f],h=g.property,i=f+"("+g.params+")";!e(i,h)&&e(c.prefix+i,h)&&c.functions.push(f)}for(var j in b){var h=b[j];!e(j,h)&&e(c.prefix+j,h)&&c.keywords.push(j)}}(),function(){function f(a){return e.textContent=a+"{}",!!e.sheet.cssRules.length}var b={":read-only":null,":read-write":null,":any-link":null,"::selection":null},d={keyframes:"name",viewport:null,document:'regexp(".")'};c.selectors=[],c.atrules=[];var e=a.appendChild(document.createElement("style"));for(var g in b){var h=g+(b[g]?"("+b[g]+")":"");!f(h)&&f(c.prefixSelector(h))&&c.selectors.push(g)}for(var i in d){var h=i+" "+(d[i]||"");!f("@"+h)&&f("@"+c.prefix+h)&&c.atrules.push(i)}a.removeChild(e)}(),c.valueProperties=["transition","transition-property"],a.className+=" "+c.prefix,StyleFix.register(c.prefixCSS)}}(document.documentElement); \ No newline at end of file