Comparing version 3.0.0-alpha to 3.0.0-alpha1
@@ -136,3 +136,3 @@ var el = typeof document !== 'undefined' && document.createElement('div'); | ||
x.rules = parse(removeComments(s).trim(), x).map(insert); | ||
x.rules = parse(removeComments(s), x).map(insert); | ||
@@ -357,4 +357,8 @@ cache.set(xs, x); | ||
content && xs.push( | ||
( (!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 ? '.' + name + (level.length ? ' ' : '') : '') | ||
+ level.join(' ').replace(/&/g, '.' + name) | ||
( | ||
(!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 | ||
? '.' + name + (level.length && level[0][0] !== ':' ? ' ' : '') | ||
: '' | ||
) | ||
+ level.join(' ').replace(/&/g, '.' + name).replace(/ :/g, ':') | ||
+ '{' + content + ';}' | ||
@@ -361,0 +365,0 @@ ); |
@@ -142,3 +142,3 @@ (function (global, factory) { | ||
x.rules = parse(removeComments(s).trim(), x).map(insert); | ||
x.rules = parse(removeComments(s), x).map(insert); | ||
@@ -363,4 +363,8 @@ cache.set(xs, x); | ||
content && xs.push( | ||
( (!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 ? '.' + name + (level.length ? ' ' : '') : '') | ||
+ level.join(' ').replace(/&/g, '.' + name) | ||
( | ||
(!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 | ||
? '.' + name + (level.length && level[0][0] !== ':' ? ' ' : '') | ||
: '' | ||
) | ||
+ level.join(' ').replace(/&/g, '.' + name).replace(/ :/g, ':') | ||
+ '{' + content + ';}' | ||
@@ -367,0 +371,0 @@ ); |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).b=n()}(this,(function(){"use strict";var e="undefined"!=typeof document&&document.createElement("div");function n(n,t){try{return e.style[n]="1px",e.style.setProperty(n,"1px"),"1px"===e.style[n].slice(-3)}catch(e){return!1}}var t=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,r=function(e){return e.replace(/(\B[A-Z])/g,"-$1").toLowerCase()},o=function(e){return e?e.hasOwnProperty("width")?e:o(Object.getPrototypeOf(e)):{}},u=["float"].concat(Object.keys("undefined"==typeof document?{}:o(document.documentElement.style))).filter((function(e,n,t){return-1===e.indexOf("-")&&"length"!==e&&t.indexOf(e)===n})).map((function(e){return e.match(t)?"-"+r(e):r(e)})).sort(),a=function(e,n){var t;return Object.assign(e,((t={})[n.split("-").map((function(e){return e[0]})).join("")]=n,t))},i=Object.assign(u.reduce(a,{}),["align-items","bottom","background-color","border-radius","box-shadow","background-image","color","display","float","flex-direction","font-family","font-size","height","justify-content","left","line-height","letter-spacing","margin","margin-bottom","margin-left","margin-right","margin-top","opacity","padding","padding-bottom","padding-left","padding-right","padding-top","right","top","text-align","text-decoration","text-transform","width"].reduce(a,{}));function c(e){return i[e]||e}var s="object"==typeof document&&document,l=function(e,n){return n?function(n){return e.indexOf(n.toLowerCase())>-1}:function(n){return e.indexOf(n)>-1}},f=l("abcdefghijklmnopqrstuvwxyz-"),p=l("abcdefghijklmnopqrstuvwxyz0123456789-_",!0),d=l("'\""),h=l(" :"),m=l(" ,)"),g=Object.create(null,{}),v=Object.create(null,{});function x(e){void 0===e&&(e={});var t=e.root;void 0===t&&(t=s&&s.documentElement.style);var r=e.style;void 0===r&&(r=s&&s.createElement("style"));var o=e.prefix;void 0===o&&(o="b"+("000000"+(Math.random()*Math.pow(36,6)|0).toString(36)).slice(-6));var a,i,l,v=e.charset,y=(a=[],i=[],l={has:function(e){return-1!==a.indexOf(e)},get:function(e){return i[a.indexOf(e)]},set:function(e,n){return a.push[e],i.push(n),l},delete:function(e){return-1!==a.indexOf(e)&&i.splice(a.indexOf(i),1)},forEach:function(e){return a.forEach((function(n,t){return e(i[t],n,l)}))},clear:function(){return a=[],void(i=[])}}),b=t&&"undefined"!=typeof CSS&&CSS.supports("color","var(--var)"),O=[],j=[],w=[],$=0;function k(e){for(var n=[],t=arguments.length-1;t-- >0;)n[t]=arguments[t+1];var r=y.get(e)||function(){var e={name:k.prefix+ ++k.count,rules:[],classes:[],toString:function(){return e.classes.join(" ")},valueOf:function(){return e.classes.join(" ")}};return e}();if(r.classes=[r.name],y.has(e))return n.forEach((function(e,n){return z(r,e)||E(r.name+"-"+(n+1),e)})),r;for(var o,u=e[0],a=1;a<e.length;a++){var i=n[a-1];if(!z(r,i)){var c=j.reduce((function(e,n){return n(e)}),u.match(/[;\s]\s+([a-z-]+)[:\s].*$/)[1]);u+=E(r.name+"-"+a,i,c,S(c,u))+e[a]}}return r.rules=function(e,n){for(var t=[],r={prop:null,value:null,out:[],lean:!0,comma:0,end:0,quote:!1},o=[],u=!1,a=!1,i=!1,c=0;c<e.length;c++)if(c>0&&i&&!p(e[c])&&(n.name=e.slice(1,c)+"-"+n.name,i=!1),i||0===c&&"."===e[c])i=!0;else if(P(e,c,r),"}"===e[c]||c===e.length-1)A(u||a||t,c,n.name,r,o),u&&!o.length&&((a||t).push(u.selector+"{"+u.join("")+"}"),u=!1),a&&!o.length&&(t.push(a.selector+"{"+a.join("")+"}"),a=!1),o.pop();else if("{"===e[c]){var s=e.slice(r.end,c).trim();A(u||a||t,c,n.name,r,o),r.prop=r.value=null,0===s.indexOf("@supports")?a=Object.assign([],{selector:s}):"@"===s[0]?u=Object.assign([],{selector:w.reduce((function(e,n){return n(e)}),s.trim())}):o.push(s)}return t}((o=u,o.replace(/\/\/.*?(\n|$)/g,"\n").replace(/\/\*[\s\S]*?\*\//g,"")).trim(),r).map(q),y.set(e,r),r}return k.count=0,k.rules=[],k.rules.vars=[],k.vars={},k.debug=!1,k.dev=!1,k.charset=v,k.prefix=o,k.properties=u,k.at=function(e){return w.unshift("function"==typeof e?e:function(n){return e[n.slice(1)]||n})},k.prop=function(e){return j.unshift(e)},k.transform=function(e){return O.unshift(e)},k.create=x,k.prop((function(e){if(-1===u.indexOf(e)){if(g[e])return k.debug&&console.log(e,"prefixed to",g[e]),g[e];k.debug&&console.log(e,"not found")}return e})),k.prop(c),r&&s.head&&s.head.appendChild(r),r&&(r.id=k.prefix),k;function z(e,n){var t,r;return n&&n.classes?((t=e.classes).push.apply(t,n.classes),!0):Array.isArray(n)?((r=e.classes).push.apply(r,n.map((function(n){return e.classes})).flat()),!0):void 0}function S(e,t){return"transform"===e?t.match(/translate(3D|X|Y)?\([^)]*$/)?"px":t.match(/rotate(3D|X|Y)?\([^)]*$/)?"deg":"":n(e)&&!t.match(/\([^)]*$/)?"px":""}function E(e,n,o,u){void 0===u&&(u="");var a=k.vars[e]||(k.vars[e]={name:e,prop:o,suffix:u,change:function(e){return function(e,n,o){o=function(e,n){return e+(e.match(/[^-0-9.]/)?"":n)}(String(o),e.suffix),e.value!==o&&(e.value=o,b?t.setProperty("--"+e.name,o):e.raw&&function(e,n,t,o){if(e=e+$+(k.charset?1:0),k.dev)r.textContent=C((k.charset?[k.charset]:[]).concat(k.rules).map(M).join("\n"),k.rules.vars[e],e);else try{r.sheet.deleteRule(e),r.sheet.insertRule(C(k.rules[e],k.rules.vars[e],e),e)}catch(e){k.debug&&console.log("Ignored error:",e)}}(e.index));return e.value}(a,0,O.reduce((function(e,n){return n(e,a.prop,a.change)}),e))}});return a.change(n),a.raw=n,"var(--"+e+")"}function C(e,n,t){return t=t+$+(k.charset?1:0),n.reduce((function(e,n){return e.replace(n,k.vars[n.slice(6,-1)].value)}),e)}function q(e){var n=0===e.indexOf("@import"),t=n?0:k.rules.length,o=!b&&e.match(/var\(--[a-z0-9-]+\)/g)||[];if(o.forEach((function(e){return k.vars[e.slice(6,-1)].index=t})),$+=n?1:0,0===t?k.rules.unshift(e):k.rules.push(e),0===t?k.rules.vars.unshift(o):k.rules.vars.push(o),k.dev)r.textContent=C((k.charset?[k.charset]:[]).concat(k.rules).map(M).join("\n"),o,t);else try{r.sheet.insertRule(C(e,o,t),t+(k.charset?1:0))}catch(e){k.debug&&console.log("Ignored error:",e)}}function M(e){return e.replace(/{/g," {\n").replace(/([;{])\n*/g,"$1\n ").replace(/(.*):(.*);/g,"$1: $2;").replace(/[\s]*}/g,"\n}\n").replace(/,\s*/g,", ").replace(/@.*{[\s\S]*?}[\s]*}/g,(function(e){return e.split("\n").reduce((function(e,n,t,r){return e+(t<r.length-1?"\n":"")+(t>1&&t<r.length-2?" ":"")+n}),"")})).trim().replace("}\n\n}","}\n}")}function A(e,n,t,r,o){var u=r.out.length&&r.out.map((function(e){return e.join(":")})).join(";");u&&e.push((o.length&&"&"===o[0][0]||0===(!e.selector||e.selector.indexOf("@keyframes "))?"":"."+t+(o.length?" ":""))+o.join(" ").replace(/&/g,"."+t)+"{"+u+";}"),r.end=n+1,r.out=[]}function P(e,t,r){!r.value&&null!==r.prop&&r.lean&&":"===e[t]&&(r.lean=!1),r.value||null===r.prop||","!==e[t]?!r.value&&null===r.prop&&f(e[t])?r.prop=t:"number"==typeof r.prop&&(t===e.length-1||!r.value&&(h(e[t])||r.lean&&"\n"===e[t]))&&(r.value=t+1):(r.value=r.comma,r.prop=r.out[r.out.length-1][0]),function(e,t,r){r.value&&d(e[t])&&(r.quote=!r.quote);!r.quote&&null!==r.prop&&(t===e.length-1||";"===e[t]||"}"===e[t+1]||r.lean&&","!==e[t-1]&&"\n"===e[t])&&(r.out.push(function(e){var t=e[0],r=e[1];if(!n(t=j.reduce((function(e,n){return n(e)}),t.trim())))return[t,r.trim()];for(var o="",u=0,a=!1,i=0;i<r.length;i++){if(m(r[i])||i===r.length-1){var c=r.slice(u,i+1).trim();o+=(a?c:c.replace(/(^|[( ,])([-0-9.]+)([ ,)]|$)/g,"$1$2px$3").trim())+(")"===r[i]?"":" "),u=i+1}"("!==r[i]&&")"!==r[i-1]||(a="transform"!==t||0!==r.slice(u,i).indexOf("translate"))}return[t,o.trim().replace(/[\n ]+/g," ")]}(e.slice(r.prop,t+1).match(/\s*([a-z-]+)[\s:]*([^;]+)/).slice(1))),r.end=t+1,r.comma=r.value,r.value=r.prop=null,r.lean=!0)}(e,t,r)}}u.forEach((function(e){var n=e.match(/-(ms|o|webkit|moz)-/g);if(n){var t=e.replace(/-(ms|o|webkit|moz)-/,"");if(-1===u.indexOf(t))return"flexDirection"===t&&(v.flex="-"+n[1].toLowerCase()+"-flex"),void(g[t]=e)}}));var y=x();return y.create=x,y})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).b=n()}(this,(function(){"use strict";var e="undefined"!=typeof document&&document.createElement("div");function n(n,t){try{return e.style[n]="1px",e.style.setProperty(n,"1px"),"1px"===e.style[n].slice(-3)}catch(e){return!1}}var t=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,r=function(e){return e.replace(/(\B[A-Z])/g,"-$1").toLowerCase()},o=function(e){return e?e.hasOwnProperty("width")?e:o(Object.getPrototypeOf(e)):{}},u=["float"].concat(Object.keys("undefined"==typeof document?{}:o(document.documentElement.style))).filter((function(e,n,t){return-1===e.indexOf("-")&&"length"!==e&&t.indexOf(e)===n})).map((function(e){return e.match(t)?"-"+r(e):r(e)})).sort(),a=function(e,n){var t;return Object.assign(e,((t={})[n.split("-").map((function(e){return e[0]})).join("")]=n,t))},i=Object.assign(u.reduce(a,{}),["align-items","bottom","background-color","border-radius","box-shadow","background-image","color","display","float","flex-direction","font-family","font-size","height","justify-content","left","line-height","letter-spacing","margin","margin-bottom","margin-left","margin-right","margin-top","opacity","padding","padding-bottom","padding-left","padding-right","padding-top","right","top","text-align","text-decoration","text-transform","width"].reduce(a,{}));function c(e){return i[e]||e}var s="object"==typeof document&&document,l=function(e,n){return n?function(n){return e.indexOf(n.toLowerCase())>-1}:function(n){return e.indexOf(n)>-1}},f=l("abcdefghijklmnopqrstuvwxyz-"),p=l("abcdefghijklmnopqrstuvwxyz0123456789-_",!0),d=l("'\""),h=l(" :"),m=l(" ,)"),g=Object.create(null,{}),v=Object.create(null,{});function x(e){void 0===e&&(e={});var t=e.root;void 0===t&&(t=s&&s.documentElement.style);var r=e.style;void 0===r&&(r=s&&s.createElement("style"));var o=e.prefix;void 0===o&&(o="b"+("000000"+(Math.random()*Math.pow(36,6)|0).toString(36)).slice(-6));var a,i,l,v=e.charset,y=(a=[],i=[],l={has:function(e){return-1!==a.indexOf(e)},get:function(e){return i[a.indexOf(e)]},set:function(e,n){return a.push[e],i.push(n),l},delete:function(e){return-1!==a.indexOf(e)&&i.splice(a.indexOf(i),1)},forEach:function(e){return a.forEach((function(n,t){return e(i[t],n,l)}))},clear:function(){return a=[],void(i=[])}}),b=t&&"undefined"!=typeof CSS&&CSS.supports("color","var(--var)"),O=[],j=[],w=[],$=0;function k(e){for(var n=[],t=arguments.length-1;t-- >0;)n[t]=arguments[t+1];var r=y.get(e)||function(){var e={name:k.prefix+ ++k.count,rules:[],classes:[],toString:function(){return e.classes.join(" ")},valueOf:function(){return e.classes.join(" ")}};return e}();if(r.classes=[r.name],y.has(e))return n.forEach((function(e,n){return z(r,e)||E(r.name+"-"+(n+1),e)})),r;for(var o,u=e[0],a=1;a<e.length;a++){var i=n[a-1];if(!z(r,i)){var c=j.reduce((function(e,n){return n(e)}),u.match(/[;\s]\s+([a-z-]+)[:\s].*$/)[1]);u+=E(r.name+"-"+a,i,c,S(c,u))+e[a]}}return r.rules=function(e,n){for(var t=[],r={prop:null,value:null,out:[],lean:!0,comma:0,end:0,quote:!1},o=[],u=!1,a=!1,i=!1,c=0;c<e.length;c++)if(c>0&&i&&!p(e[c])&&(n.name=e.slice(1,c)+"-"+n.name,i=!1),i||0===c&&"."===e[c])i=!0;else if(P(e,c,r),"}"===e[c]||c===e.length-1)A(u||a||t,c,n.name,r,o),u&&!o.length&&((a||t).push(u.selector+"{"+u.join("")+"}"),u=!1),a&&!o.length&&(t.push(a.selector+"{"+a.join("")+"}"),a=!1),o.pop();else if("{"===e[c]){var s=e.slice(r.end,c).trim();A(u||a||t,c,n.name,r,o),r.prop=r.value=null,0===s.indexOf("@supports")?a=Object.assign([],{selector:s}):"@"===s[0]?u=Object.assign([],{selector:w.reduce((function(e,n){return n(e)}),s.trim())}):o.push(s)}return t}((o=u,o.replace(/\/\/.*?(\n|$)/g,"\n").replace(/\/\*[\s\S]*?\*\//g,"")),r).map(q),y.set(e,r),r}return k.count=0,k.rules=[],k.rules.vars=[],k.vars={},k.debug=!1,k.dev=!1,k.charset=v,k.prefix=o,k.properties=u,k.at=function(e){return w.unshift("function"==typeof e?e:function(n){return e[n.slice(1)]||n})},k.prop=function(e){return j.unshift(e)},k.transform=function(e){return O.unshift(e)},k.create=x,k.prop((function(e){if(-1===u.indexOf(e)){if(g[e])return k.debug&&console.log(e,"prefixed to",g[e]),g[e];k.debug&&console.log(e,"not found")}return e})),k.prop(c),r&&s.head&&s.head.appendChild(r),r&&(r.id=k.prefix),k;function z(e,n){var t,r;return n&&n.classes?((t=e.classes).push.apply(t,n.classes),!0):Array.isArray(n)?((r=e.classes).push.apply(r,n.map((function(n){return e.classes})).flat()),!0):void 0}function S(e,t){return"transform"===e?t.match(/translate(3D|X|Y)?\([^)]*$/)?"px":t.match(/rotate(3D|X|Y)?\([^)]*$/)?"deg":"":n(e)&&!t.match(/\([^)]*$/)?"px":""}function E(e,n,o,u){void 0===u&&(u="");var a=k.vars[e]||(k.vars[e]={name:e,prop:o,suffix:u,change:function(e){return function(e,n,o){o=function(e,n){return e+(e.match(/[^-0-9.]/)?"":n)}(String(o),e.suffix),e.value!==o&&(e.value=o,b?t.setProperty("--"+e.name,o):e.raw&&function(e,n,t,o){if(e=e+$+(k.charset?1:0),k.dev)r.textContent=C((k.charset?[k.charset]:[]).concat(k.rules).map(M).join("\n"),k.rules.vars[e],e);else try{r.sheet.deleteRule(e),r.sheet.insertRule(C(k.rules[e],k.rules.vars[e],e),e)}catch(e){k.debug&&console.log("Ignored error:",e)}}(e.index));return e.value}(a,0,O.reduce((function(e,n){return n(e,a.prop,a.change)}),e))}});return a.change(n),a.raw=n,"var(--"+e+")"}function C(e,n,t){return t=t+$+(k.charset?1:0),n.reduce((function(e,n){return e.replace(n,k.vars[n.slice(6,-1)].value)}),e)}function q(e){var n=0===e.indexOf("@import"),t=n?0:k.rules.length,o=!b&&e.match(/var\(--[a-z0-9-]+\)/g)||[];if(o.forEach((function(e){return k.vars[e.slice(6,-1)].index=t})),$+=n?1:0,0===t?k.rules.unshift(e):k.rules.push(e),0===t?k.rules.vars.unshift(o):k.rules.vars.push(o),k.dev)r.textContent=C((k.charset?[k.charset]:[]).concat(k.rules).map(M).join("\n"),o,t);else try{r.sheet.insertRule(C(e,o,t),t+(k.charset?1:0))}catch(e){k.debug&&console.log("Ignored error:",e)}}function M(e){return e.replace(/{/g," {\n").replace(/([;{])\n*/g,"$1\n ").replace(/(.*):(.*);/g,"$1: $2;").replace(/[\s]*}/g,"\n}\n").replace(/,\s*/g,", ").replace(/@.*{[\s\S]*?}[\s]*}/g,(function(e){return e.split("\n").reduce((function(e,n,t,r){return e+(t<r.length-1?"\n":"")+(t>1&&t<r.length-2?" ":"")+n}),"")})).trim().replace("}\n\n}","}\n}")}function A(e,n,t,r,o){var u=r.out.length&&r.out.map((function(e){return e.join(":")})).join(";");u&&e.push((o.length&&"&"===o[0][0]||0===(!e.selector||e.selector.indexOf("@keyframes "))?"":"."+t+(o.length&&":"!==o[0][0]?" ":""))+o.join(" ").replace(/&/g,"."+t).replace(/ :/g,":")+"{"+u+";}"),r.end=n+1,r.out=[]}function P(e,t,r){!r.value&&null!==r.prop&&r.lean&&":"===e[t]&&(r.lean=!1),r.value||null===r.prop||","!==e[t]?!r.value&&null===r.prop&&f(e[t])?r.prop=t:"number"==typeof r.prop&&(t===e.length-1||!r.value&&(h(e[t])||r.lean&&"\n"===e[t]))&&(r.value=t+1):(r.value=r.comma,r.prop=r.out[r.out.length-1][0]),function(e,t,r){r.value&&d(e[t])&&(r.quote=!r.quote);!r.quote&&null!==r.prop&&(t===e.length-1||";"===e[t]||"}"===e[t+1]||r.lean&&","!==e[t-1]&&"\n"===e[t])&&(r.out.push(function(e){var t=e[0],r=e[1];if(!n(t=j.reduce((function(e,n){return n(e)}),t.trim())))return[t,r.trim()];for(var o="",u=0,a=!1,i=0;i<r.length;i++){if(m(r[i])||i===r.length-1){var c=r.slice(u,i+1).trim();o+=(a?c:c.replace(/(^|[( ,])([-0-9.]+)([ ,)]|$)/g,"$1$2px$3").trim())+(")"===r[i]?"":" "),u=i+1}"("!==r[i]&&")"!==r[i-1]||(a="transform"!==t||0!==r.slice(u,i).indexOf("translate"))}return[t,o.trim().replace(/[\n ]+/g," ")]}(e.slice(r.prop,t+1).match(/\s*([a-z-]+)[\s:]*([^;]+)/).slice(1))),r.end=t+1,r.comma=r.value,r.value=r.prop=null,r.lean=!0)}(e,t,r)}}u.forEach((function(e){var n=e.match(/-(ms|o|webkit|moz)-/g);if(n){var t=e.replace(/-(ms|o|webkit|moz)-/,"");if(-1===u.indexOf(t))return"flexDirection"===t&&(v.flex="-"+n[1].toLowerCase()+"-flex"),void(g[t]=e)}}));var y=x();return y.create=x,y})); | ||
//# sourceMappingURL=bss.min.js.map |
@@ -60,3 +60,3 @@ import px from './px.js' | ||
x.rules = parse(removeComments(s).trim(), x).map(insert) | ||
x.rules = parse(removeComments(s), x).map(insert) | ||
@@ -280,4 +280,8 @@ cache.set(xs, x) | ||
content && xs.push( | ||
( (!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 ? '.' + name + (level.length ? ' ' : '') : '') | ||
+ level.join(' ').replace(/&/g, '.' + name) | ||
( | ||
(!level.length || level[0][0] !== '&') && (!xs.selector || xs.selector.indexOf('@keyframes ')) !== 0 | ||
? '.' + name + (level.length && level[0][0] !== ':' ? ' ' : '') | ||
: '' | ||
) | ||
+ level.join(' ').replace(/&/g, '.' + name).replace(/ :/g, ':') | ||
+ '{' + content + ';}' | ||
@@ -284,0 +288,0 @@ ) |
{ | ||
"name": "bss", | ||
"version": "3.0.0-alpha", | ||
"version": "3.0.0-alpha1", | ||
"description": "Better Style Sheets", | ||
@@ -5,0 +5,0 @@ "main": "dist/bss.js", |
@@ -17,2 +17,4 @@ const o = require('ospec') | ||
throw new Error() | ||
if (prop === 'opacity') | ||
el.style[prop] = '1' | ||
} | ||
@@ -34,2 +36,3 @@ } | ||
animation: '', | ||
opacity: '', | ||
display: '', | ||
@@ -61,2 +64,11 @@ backgroundColor: '', | ||
o('Pseudo works', () => { | ||
b` | ||
:hover { | ||
opacity 0.5 | ||
} | ||
` | ||
o(b.rules.pop()).equals(cn() + ':hover{opacity:0.5;}') | ||
}) | ||
o('White space around colon', () => { | ||
@@ -63,0 +75,0 @@ b`position:absolute; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
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
158077
1662
0