├── .htaccess ├── PIE.htc ├── PIE_IE678.js ├── PIE_IE9.js ├── README.md ├── changelog.txt ├── prefixfree.min.js ├── selectivizr.js ├── styleMedia.js └── tests ├── dora3.css ├── doraemon_css3.html ├── jquery.min.js ├── linear-gradient.html ├── master ├── css │ ├── common.css │ ├── iframe.css │ ├── import-print.css │ ├── import-quoted-double.css │ ├── import-quoted-single.css │ ├── import-screen.css │ ├── import-url-fully-qualified-path.css │ ├── import-url-protocol-relative-path.css │ ├── import-url-quoted-double.css │ ├── import-url-quoted-single.css │ ├── import-url-root-relative-path.css │ ├── import-url-unquoted.css │ ├── master.css │ └── nested │ │ ├── import-url-relative-path.css │ │ └── test.png ├── htc │ └── test.htc ├── html │ ├── domready-postload.html │ ├── iframe-hash.html │ ├── iframe-query.html │ └── iframe.html ├── index.html └── js │ └── test.js ├── transform.htc ├── wolf.css └── wolf.html /.htaccess: -------------------------------------------------------------------------------- 1 | ####################### 2 | # File Format Support # 3 | ####################### 4 | 5 | ### Add support for SVG and HTC 6 | AddType image/svg+xml svg svgz 7 | AddType text/x-component .htc -------------------------------------------------------------------------------- /PIE.htc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /PIE_IE678.js: -------------------------------------------------------------------------------- 1 | (function(O,I){var h=O.PIE||(O.PIE={});h.Fa=function(a){var b,d,e,c,g=arguments;b=1;for(d=g.length;b",d[0];);h.U=a;if(a===6)h.z=h.z.replace(/^-/,"");h.qa=I.documentMode||h.U;b.innerHTML='';a=b.firstChild;a.style.behavior="url(#default#VML)";h.uc=typeof a.adj==="object"})();(function(){var a=0,b={};h.Q={pa:function(d){return d&&d._pieId||(d._pieId="_"+a++)},Bc:function(d,e,c){var g=b[d],i,j;if(g)Object.prototype.toString.call(g)==="[object Array]"?g.push([e,c]):e.call(c,g);else{j=b[d]=[[e,c]]; 3 | i=new Image;i.onload=function(){g=b[d]={f:i.width,e:i.height};for(var f=0,k=j.length;f=180?0:b,a<90||a>270?0:d);e=c[0];c=c[1];b=b-e;d=d-c;return{la:a, 4 | rd:e,sd:c,be:b,ce:d,Kd:h.nb.md(b,d,e,c)}},Pd:function(a,b,d,e,c){if(d===0||d===180)return[a,c];else if(d===90||d===270)return[e,b];else{d=Math.tan((d-90)*Math.PI/180);a=d*a-b;b=-1/d;e=b*e-c;c=b-d;return[(e-a)/c,(d*e-b*a)/c]}},md:function(a,b,d,e){a=d-a;b=e-b;return Math.abs(a===0?b:b===0?a:Math.sqrt(a*a+b*b))}};h.ja=function(){this.Fb=[];this.ic={}};h.ja.prototype={ca:function(a){var b=h.Q.pa(a),d=this.ic,e=this.Fb;if(!(b in d)){d[b]=e.length;e.push(a)}},Ka:function(a){a=h.Q.pa(a);var b=this.ic;if(a&& 5 | a in b){delete this.Fb[b[a]];delete b[a]}},Da:function(){for(var a=this.Fb,b=a.length;b--;)a[b]&&a[b]()}};h.Pa=new h.ja;h.Pa.Vd=function(){var a=this,b;if(!a.Wd){b=I.documentElement.currentStyle.getAttribute(h.z+"poll-interval")||250;(function d(){a.Da();setTimeout(d,b)})();a.Wd=1}};(function(){function a(){h.J.Da();O.detachEvent("onunload",a);O.PIE=null}h.J=new h.ja;O.attachEvent("onunload",a);h.J.za=function(b,d,e){b.attachEvent(d,e);this.ca(function(){b.detachEvent(d,e)})}})();h.Sa=new h.ja;h.J.za(O, 6 | "onresize",function(){h.Sa.Da()});(function(){function a(){h.pb.Da()}h.pb=new h.ja;h.J.za(O,"onscroll",a);h.Sa.ca(a)})();(function(){function a(){d=h.mb.ld()}function b(){if(d){for(var e=0,c=d.length;e0)return parseFloat(k);else if(f.tagName in h.Ub){m=this;l=f.parentNode;return h.m(k).a(l,function(){return m.zb(l)})}else{f.appendChild(b);k=b.offsetWidth;b.parentNode===f&&f.removeChild(b);return k}}};a.gb=function(f){return f/c.pt};h.m=function(f){return j[f]||(j[f]=new a(f))};return a}();h.kb=function(){function a(c){this.ga=c}var b=h.m("50%"), 9 | d={top:1,center:1,bottom:1},e={left:1,center:1,right:1};a.prototype={Cd:function(){if(!this.Sb){var c=this.ga,g=c.length,i=h.q,j=i.ya,f=h.m("0");j=j.W;f=["left",f,"top",f];if(g===1){c.push(new i.rb(j,"center"));g++}if(g===2){j&(c[0].h|c[1].h)&&c[0].c in d&&c[1].c in e&&c.push(c.shift());if(c[0].h&j)if(c[0].c==="center")f[1]=b;else f[0]=c[0].c;else if(c[0].G())f[1]=h.m(c[0].c);if(c[1].h&j)if(c[1].c==="center")f[3]=b;else f[2]=c[1].c;else if(c[1].G())f[3]=h.m(c[1].c)}this.Sb=f}return this.Sb},coords:function(c, 10 | g,i){var j=this.Cd(),f=j[1].a(c,g);c=j[3].a(c,i);return{x:j[0]==="right"?g-f:f,y:j[2]==="bottom"?i-c:c}}};return a}();h.Ma=function(){function a(b,d){this.f=b;this.e=d}a.prototype={a:function(b,d,e,c,g){var i=this.f,j=this.e,f=d/e;c=c/g;if(i==="contain"){i=c>f?d:e*c;j=c>f?d/c:e}else if(i==="cover"){i=c1)l-=1;return 255*(6*l<1?f+(k-f)*l*6:2*l<1?k:3*l<2?f+(k-f)*(2/3-l)*6:f)}function b(f){this.ha=f}var d={};b.Ud=/\s*rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/; 12 | b.Gd=/\s*hsla?\(\s*(\d*\.?\d+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/;b.db={};for(var e="black|0|navy|3k|darkblue|b|mediumblue|1u|blue|1e|darkgreen|jk1|green|5j4|teal|3k|darkcyan|26j|deepskyblue|ad0|darkturquoise|2xe|mediumspringgreen|8nd|lime|va|springgreen|3j|aqua|3k|cyan|0|midnightblue|xunl|dodgerblue|7ogf|lightseagreen|2zsb|forestgreen|2lbs|seagreen|guut|darkslategray|12pk|limegreen|4wkj|mediumseagreen|dwlb|turquoise|5v8f|royalblue|r2p|steelblue|75qr|darkslateblue|2fh3|mediumturquoise|ta9|indigo|32d2|darkolivegreen|emr1|cadetblue|ebu9|cornflowerblue|6z4d|mediumaquamarine|3459|dimgray|3nwf|slateblue|1bok|olivedrab|1opi|slategray|6y5p|lightslategray|9vk9|mediumslateblue|5g0l|lawngreen|27ma|chartreuse|48ao|aquamarine|5w|maroon|18|purple|3k|olive|p6o|gray|3k|lightslateblue|5j7j|skyblue|4q98|lightskyblue|f|blueviolet|3bhk|darkred|15we|darkmagenta|3v|saddlebrown|djc|darkseagreen|69vg|lightgreen|1og1|mediumpurple|3ivc|darkviolet|sfv|palegreen|6zt1|darkorchid|awk|yellowgreen|292e|sienna|7r3v|brown|6sxp|darkgray|6bgf|lightblue|5vlp|greenyellow|7k9|paleturquoise|2pxb|lightsteelblue|169c|powderblue|5jc|firebrick|1rgc|darkgoldenrod|8z55|mediumorchid|2jm0|rosybrown|34jg|darkkhaki|1mfw|silver|49jp|mediumvioletred|8w5h|indianred|8tef|peru|82r|violetred|3ntd|feldspar|212d|chocolate|16eh|tan|ewe|lightgrey|1kqv|palevioletred|6h8g|metle|fnp|orchid|2dj2|goldenrod|abu|crimson|20ik|gainsboro|13mo|plum|12pt|burlywood|1j8q|lightcyan|3794|lavender|8agr|darksalmon|3rsw|violet|6wz8|palegoldenrod|k3g|lightcoral|28k6|khaki|k5o|aliceblue|3n7|honeydew|1dd|azure|f|sandybrown|5469|wheat|1q37|beige|4kp|whitesmoke|p|mintcream|1z9|ghostwhite|46bp|salmon|25bn|antiquewhite|l7p|linen|zz|lightgoldenrodyellow|1yk|oldlace|46qc|red|1gka|magenta|73|fuchsia|0|deeppink|3v8|orangered|9kd|tomato|5zb|hotpink|19p|coral|49o|darkorange|2i8|lightsalmon|41m|orange|w6|lightpink|3i9|pink|1ze|gold|4dx|peachpuff|qh|navajowhite|s4|moccasin|16w|bisque|f|mistyrose|t|blanchedalmond|1d8|papayawhip|so|lavenderblush|80|seashell|zd|cornsilk|ku|lemonchiffon|dt|floralwhite|z|snow|a|yellow|sm|lightyellow|68|ivory|g|white|f".split("|"), 13 | c=0,g=e.length,i=0,j;c=this.$a.length)return c();i=this.ch;g=this.$a.substring(this.ch);j=g.charAt(0);switch(j){case "#":if(f=g.match(this.Ed)){this.ch+=f[0].length;return e(b.u,f[0])}break;case '"':case "'":if(f=g.match(this.de)){this.ch+=f[0].length;return e(b.Oc, 17 | f[2]||f[3]||"")}break;case "/":case ",":this.ch++;return e(b.xa,j);case "u":if(f=g.match(this.url)){this.ch+=f[0].length;return e(b.URL,f[2]||f[3]||f[4]||"")}}if(f=g.match(this.Od)){j=f[0];this.ch+=j.length;if(g.charAt(j.length)==="%"){this.ch++;return e(b.Ta,j+"%")}if(f=g.substring(j.length).match(this.hc)){j+=f[0];this.ch+=f[0].length;return e(this.je[f[0].toLowerCase()]||b.Lc,j)}return e(b.wa,j)}if(f=g.match(this.hc)){j=f[0];this.ch+=j.length;if(j.toLowerCase()in h.Jc.db||j==="currentColor"||j=== 18 | "transparent")return e(b.u,j);if(g.charAt(j.length)==="("){this.ch++;if(j.toLowerCase()in this.dd){g=function(o){return o&&o.h&b.wa};f=function(o){return o&&o.h&(b.wa|b.Ta)};var l=function(o,t){return o&&o.c===t},m=function(){return k.next(1)};if((j.charAt(0)==="r"?f(m()):g(m()))&&l(m(),",")&&f(m())&&l(m(),",")&&f(m())&&(j==="rgb"||j==="hsa"||l(m(),",")&&g(m()))&&l(m(),")"))return e(b.u,this.$a.substring(i,this.ch));return c()}return e(b.Nb,j)}return e(b.W,j)}this.ch++;return e(b.Mb,j)},C:function(){return this.ga[this.Ja-- - 19 | 2]},all:function(){for(;this.next(););return this.ga},va:function(d,e){for(var c=[],g,i;g=this.next();){if(d(g)){i=true;this.C();break}c.push(g)}return e&&!i?null:c}};return a}();h.Lb=function(a){this.d=a};h.Lb.prototype={X:0,qc:function(){var a=this.ub,b;return!a||(b=this.n())&&(a.x!==b.x||a.y!==b.y)},Zd:function(){var a=this.ub,b;return!a||(b=this.n())&&(a.f!==b.f||a.e!==b.e)},dc:function(){var a=this.d,b=a.getBoundingClientRect(),d=h.qa===9,e=h.U===7,c=b.right-b.left;return{x:b.left,y:b.top,f:d|| 20 | e?a.offsetWidth:c,e:d||e?a.offsetHeight:b.bottom-b.top,kc:e&&c?a.offsetWidth/c:1}},n:function(){return this.X?this.Va||(this.Va=this.dc()):this.dc()},Dd:function(){return!!this.ub},cb:function(){++this.X},ib:function(){if(!--this.X){if(this.Va)this.ub=this.Va;this.Va=null}}};(function(){function a(b){var d=h.Q.pa(b);return function(){if(this.X){var e=this.Qb||(this.Qb={});return d in e?e[d]:(e[d]=b.call(this))}else return b.call(this)}}h.p={X:0,ba:function(b){function d(e){this.d=e;this.Pb=this.T()} 21 | h.Fa(d.prototype,h.p,b);d.Wc={};return d},i:function(){var b=this.T(),d=this.constructor.Wc;return b?b in d?d[b]:(d[b]=this.ea(b)):null},T:a(function(){var b=this.d,d=this.constructor,e=b.style;b=b.currentStyle;var c=this.Aa,g=this.Ia,i=d.Uc||(d.Uc=h.z+c);d=d.Vc||(d.Vc=h.qb+g.charAt(0).toUpperCase()+g.substring(1));return e[d]||b.getAttribute(i)||e[g]||b.getAttribute(c)}),j:a(function(){return!!this.i()}),L:a(function(){var b=this.T(),d=b!==this.Pb;this.Pb=b;return d}),oa:a,cb:function(){++this.X}, 22 | ib:function(){--this.X||delete this.Qb}}})();h.Ib=h.p.ba({Aa:h.z+"background",Ia:h.qb+"Background",Zc:{scroll:1,fixed:1,local:1},hb:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},oc:{"padding-box":1,"border-box":1,"content-box":1},Rd:{top:1,right:1,bottom:1,left:1,center:1},$d:{contain:1,cover:1},ge:{top:1,bottom:1},Ld:{left:1,right:1},fb:{Oa:"backgroundClip",u:"backgroundColor",ia:"backgroundImage",Ra:"backgroundOrigin",P:"backgroundPosition",ka:"backgroundRepeat",Ua:"backgroundSize"},ea:function(a){function b(s){return s&& 23 | (s.G()&&h.m(s.c)||s.c==="auto"&&"auto")}var d=this.d.currentStyle,e,c,g,i=h.q.ya,j=i.xa,f=i.W,k=i.u,l,m,o=0,t=this.Rd,r,u,q,n,p={R:[]};if(this.yb()){e=new h.q(a);for(g={};c=e.next();){l=c.h;m=c.c;if(!g.V&&l&i.Nb&&m==="linear-gradient"){r={ua:[],V:m};for(u={};c=e.next();){l=c.h;m=c.c;if(l&i.Mb&&m===")"){u.color&&r.ua.push(u);r.ua.length>1&&h.Fa(g,r);break}if(l&k){if(r.la||r.ab){c=e.C();if(c.h!==j)break;e.next()}u={color:h.aa(m)};c=e.next();if(c.G())u.mc=h.m(c.c);else e.C()}else if(l&i.La&&!r.la&&!r.ab&& 24 | !u.color&&!r.ua.length)r.la=new h.Dc(c.c);else if(l&i.W&&m==="to"&&!r.ab&&!r.la&&!u.color&&!r.ua.length){q=this.ge;n=this.Ld;c=e.va(function(s){return!(s&&s.h&i.W&&(s.c in q||s.c in n))});l=c.length;c=[c[0]&&c[0].c,c[1]&&c[1].c];if(l<1||l>2||l>1&&(c[0]in q&&c[1]in q||c[0]in n&&c[1]in n))break;r.ab=c}else if(l&j&&m===","){if(u.color){r.ua.push(u);u={}}}else break}}else if(!g.V&&l&i.URL){g.Db=m;g.V="image"}else if((c&&c.G()||c.h&f&&c.c in t)&&!g.ma){e.C();g.ma=new h.kb(e.va(function(s){return!(s&&s.G()|| 25 | s.h&f&&s.c in t)},false))}else if(l&f)if(m in this.hb&&!g.bb)g.bb=m;else if(m in this.oc&&!g.Ya){g.Ya=m;if((c=e.next())&&c.h&f&&c.c in this.oc)g.Xa=c.c;else{g.Xa=m;e.C()}}else if(m in this.Zc&&!g.ad)g.ad=m;else return null;else if(l&k&&!p.color)p.color=h.aa(m);else if(l&j&&m==="/"&&!g.Za&&g.ma){c=e.next();if(c.h&f&&c.c in this.$d)g.Za=new h.Ma(c.c);else if(r=b(c)){u=b(e.next());if(!u){u=r;e.C()}g.Za=new h.Ma(r,u)}else return null}else if(l&j&&m===","&&g.V){g.nc=a.substring(o,e.ch-1);o=e.ch;p.R.push(g); 26 | g={}}else return null}if(g.V){g.nc=a.substring(o);p.R.push(g)}p.cd=g.Xa}else this.zc(h.qa<9?function(){var s=this.fb,v=d[s.P+"X"],z=d[s.P+"Y"],x=d[s.ia],B=d[s.u];if(B!=="transparent")p.color=h.aa(B);if(x!=="none")p.R=[{V:"image",Db:(new h.q(x)).next().c,bb:d[s.ka],ma:new h.kb((new h.q(v+" "+z)).all())}]}:function(){var s=this.fb,v=/\s*,\s*/,z=d[s.ia].split(v),x=d[s.u],B,G,H,L,J,F;if(x!=="transparent")p.color=h.aa(x);if((L=z.length)&&z[0]!=="none"){x=d[s.ka].split(v);B=d[s.P].split(v);G=d[s.Ra].split(v); 27 | H=d[s.Oa].split(v);s=d[s.Ua].split(v);p.R=[];for(v=0;v8,d=this.fb,e=this.d.runtimeStyle,c=e[d.ia],g=e[d.u],i=e[d.ka],j,f,k,l;if(c)e[d.ia]="";if(g)e[d.u]="";if(i)e[d.ka]="";if(b){j=e[d.Oa];f=e[d.Ra];l=e[d.P];k= 28 | e[d.Ua];if(j)e[d.Oa]="";if(f)e[d.Ra]="";if(l)e[d.P]="";if(k)e[d.Ua]=""}a=a.call(this);if(c)e[d.ia]=c;if(g)e[d.u]=g;if(i)e[d.ka]=i;if(b){if(j)e[d.Oa]=j;if(f)e[d.Ra]=f;if(l)e[d.P]=l;if(k)e[d.Ua]=k}return a},T:h.p.oa(function(){return this.yb()||this.zc(function(){var a=this.d.currentStyle,b=this.fb;return a[b.u]+" "+a[b.ia]+" "+a[b.ka]+" "+a[b.P+"X"]+" "+a[b.P+"Y"]})}),yb:h.p.oa(function(){var a=this.d;return a.style[this.Ia]||a.currentStyle.getAttribute(this.Aa)}),vd:function(a,b,d,e){var c=this.d, 29 | g=b.n();b=g.f;g=g.e;if(a!=="border-box")if((d=d.i())&&(d=d.O)){b-=d.l.a(c)+d.r.a(c);g-=d.t.a(c)+d.b.a(c)}if(a==="content-box")if(a=e.i()){b-=a.l.a(c)+a.r.a(c);g-=a.t.a(c)+a.b.a(c)}return{f:b,e:g}},jc:function(){var a=0;if(h.U<7){a=this.d;a=""+(a.style[h.qb+"PngFix"]||a.currentStyle.getAttribute(h.z+"png-fix"))==="true"}return a},j:h.p.oa(function(){return(this.yb()||this.jc())&&!!this.i()})});h.Kb=h.p.ba({tc:["Top","Right","Bottom","Left"],Md:{thin:"1px",medium:"3px",thick:"5px"},ea:function(){var a= 30 | {},b={},d={},e=false,c=true,g=true,i=true;this.Ac(function(){for(var j=this.d.currentStyle,f=0,k,l,m,o,t,r,u;f<4;f++){m=this.tc[f];u=m.charAt(0).toLowerCase();k=b[u]=j["border"+m+"Style"];l=j["border"+m+"Color"];m=j["border"+m+"Width"];if(f>0){if(k!==o)g=false;if(l!==t)c=false;if(m!==r)i=false}o=k;t=l;r=m;d[u]=h.aa(l);m=a[u]=h.m(b[u]==="none"?"0":this.Md[m]||m);if(m.a(this.d)>0)e=true}});return e?{O:a,ee:b,ed:d,re:i,fd:c,fe:g}:null},T:h.p.oa(function(){var a=this.d,b=a.currentStyle,d;a.tagName in 31 | h.vc&&a.offsetParent.currentStyle.borderCollapse==="collapse"||this.Ac(function(){d=b.borderWidth+"|"+b.borderStyle+"|"+b.borderColor});return d}),Ac:function(a){var b=this.d.runtimeStyle,d=b.borderWidth,e=b.borderColor;if(d)b.borderWidth="";if(e)b.borderColor="";a=a.call(this);if(d)b.borderWidth=d;if(e)b.borderColor=e;return a}});(function(){h.lb=h.p.ba({Aa:"border-radius",Ia:"borderRadius",ea:function(b){var d=null,e,c,g,i,j=false;if(b){c=new h.q(b);var f=function(){for(var k=[],l;(g=c.next())&& 32 | g.G();){i=h.m(g.c);l=i.ec();if(l<0)return null;if(l>0)j=true;k.push(i)}return k.length>0&&k.length<5?{tl:k[0],tr:k[1]||k[0],br:k[2]||k[0],bl:k[3]||k[1]||k[0]}:null};if(b=f()){if(g){if(g.h&h.q.ya.xa&&g.c==="/")e=f()}else e=b;if(j&&b&&e)d={x:b,y:e}}}return d}});var a=h.m("0");a={tl:a,tr:a,br:a,bl:a};h.lb.Cc={x:a,y:a}})();h.Jb=h.p.ba({Aa:"border-image",Ia:"borderImage",hb:{stretch:1,round:1,repeat:1,space:1},ea:function(a){var b=null,d,e,c,g,i,j,f=0,k=h.q.ya,l=k.W,m=k.wa,o=k.Ta;if(a){d=new h.q(a);b= 33 | {};for(var t=function(q){return q&&q.h&k.xa&&q.c==="/"},r=function(q){return q&&q.h&l&&q.c==="fill"},u=function(){g=d.va(function(q){return!(q.h&(m|o))});if(r(d.next())&&!b.fill)b.fill=true;else d.C();if(t(d.next())){f++;i=d.va(function(q){return!q.G()&&!(q.h&l&&q.c==="auto")});if(t(d.next())){f++;j=d.va(function(q){return!q.Ea()})}}else d.C()};a=d.next();){e=a.h;c=a.c;if(e&(m|o)&&!g){d.C();u()}else if(r(a)&&!b.fill){b.fill=true;u()}else if(e&l&&this.hb[c]&&!b.repeat){b.repeat={e:c};if(a=d.next())if(a.h& 34 | l&&this.hb[a.c])b.repeat.xc=a.c;else d.C()}else if(e&k.URL&&!b.src)b.src=c;else return null}if(!b.src||!g||g.length<1||g.length>4||i&&i.length>4||f===1&&i.length<1||j&&j.length>4||f===2&&j.length<1)return null;if(!b.repeat)b.repeat={e:"stretch"};if(!b.repeat.xc)b.repeat.xc=b.repeat.e;a=function(q,n){return{t:n(q[0]),r:n(q[1]||q[0]),b:n(q[2]||q[0]),l:n(q[3]||q[1]||q[0])}};b.slice=a(g,function(q){return h.m(q.h&m?q.c+"px":q.c)});if(i&&i[0])b.O=a(i,function(q){return q.G()?h.m(q.c):q.c});if(j&&j[0])b.Ga= 35 | a(j,function(q){return q.Ea()?h.m(q.c):q.c})}return b}});h.Ic=h.p.ba({Aa:"box-shadow",Ia:"boxShadow",ea:function(a){var b,d=h.m,e=h.q.ya,c;if(a){c=new h.q(a);b={Ga:[],Eb:[]};for(a=function(){for(var g,i,j,f,k,l;g=c.next();){j=g.c;i=g.h;if(i&e.xa&&j===",")break;else if(g.Ea()&&!k){c.C();k=c.va(function(m){return!m.Ea()})}else if(i&e.u&&!f)f=j;else if(i&e.W&&j==="inset"&&!l)l=true;else return false}g=k&&k.length;if(g>1&&g<5){(l?b.Eb:b.Ga).push({le:d(k[0].c),me:d(k[1].c),blur:d(k[2]?k[2].c:"0"),ae:d(k[3]? 36 | k[3].c:"0"),color:h.aa(f||"currentColor")});return true}return false};a(););}return b&&(b.Eb.length||b.Ga.length)?b:null}});h.Ob=h.p.ba({ea:function(a){a=new h.q(a);for(var b=[],d;(d=a.next())&&d.G();)b.push(h.m(d.c));return b.length>0&&b.length<5?{t:b[0],r:b[1]||b[0],b:b[2]||b[0],l:b[3]||b[1]||b[0]}:null},T:h.p.oa(function(){var a=this.d,b=a.runtimeStyle,d=b.padding;if(d)b.padding="";a=a.currentStyle.padding;if(d)b.padding=d;return a})});h.Pc=h.p.ba({T:h.p.oa(function(){var a=this.d,b=a.runtimeStyle, 37 | d=a.currentStyle;a=b.visibility;b.visibility="";d=d.visibility+"|"+d.display;b.visibility=a;return d}),ea:function(){var a=this.T().split("|");return{yc:a[0]!=="hidden",Wb:a[1]!=="none"}},j:function(){return false}});h.Qc=function(){function a(c){return function(){var g=arguments,i,j=g.length,f,k,l;f=this[d+c]||(this[d+c]={});for(i=0;i';j.lc=1;i=[k,f,' id="',j.Yb,'" style="',j.Bd(),'" ',j.hd];c(j[d]);i.push(">");g("fill");i.push("");return i.join("")},k:function(){var c=this.B(),g=c&&c.parentNode;if(g){g.removeChild(c);delete this.Rb}}};return b}();h.v={sa:function(a){function b(d,e,c,g){this.d=d;this.o=e;this.g=c;this.parent=g}h.Fa(b.prototype,h.v,a);return b},ra:function(){return false},rc:h.qd,Hb:function(){this.j()?this.Ca():this.k()}, 41 | Cb:function(){this.d.runtimeStyle.borderColor="transparent"},k:function(){}};h.Fa(h.v,{B:function(a,b){var d=this.wb||(this.wb={}),e=d[a];if(!e){e=d[a]=new h.Qc(a,b);this.parent.td(e)}return e},Ba:function(a){var b=this.wb,d=b&&b[a];if(d){d.k();this.parent.Td(d);delete b[a]}return!!d},Ad:function(a){var b=this.d,d=this.o.n(),e=d.f,c=d.e,g,i,j,f,k,l;d=a.x.tl.a(b,e);g=a.y.tl.a(b,c);i=a.x.tr.a(b,e);j=a.y.tr.a(b,c);f=a.x.br.a(b,e);k=a.y.br.a(b,c);l=a.x.bl.a(b,e);a=a.y.bl.a(b,c);e=Math.min(e/(d+i),c/(j+ 42 | k),e/(l+f),c/(g+a));if(e<1){d*=e;g*=e;i*=e;j*=e;f*=e;k*=e;l*=e;a*=e}return{x:{tl:d,tr:i,br:f,bl:l},y:{tl:g,tr:j,br:k,bl:a}}},Z:function(a,b,d,e,c,g){a=this.$(a,b,d,e,c,g);return"m"+a[0]+","+a[1]+"qy"+a[2]+","+a[3]+"l"+a[4]+","+a[5]+"qx"+a[6]+","+a[7]+"l"+a[8]+","+a[9]+"qy"+a[10]+","+a[11]+"l"+a[12]+","+a[13]+"qx"+a[14]+","+a[15]+"x"},$:function(a,b,d,e,c,g){var i=this.o.n(),j=i.f*c,f=i.e*c,k=Math;i=k.floor;var l=k.ceil,m=k.max;k=k.min;a*=c;b*=c;d*=c;e*=c;g||(g=this.g.F.i());if(g){g=this.Ad(g);var o= 43 | g.x.tl*c,t=g.y.tl*c,r=g.x.tr*c,u=g.y.tr*c,q=g.x.br*c,n=g.y.br*c,p=g.x.bl*c;c=g.y.bl*c;e=[i(e),i(k(m(t,a),f-d)),i(k(m(o,e),j-b)),i(a),l(m(e,j-m(r,b))),i(a),l(j-b),i(k(m(u,a),f-d)),l(j-b),l(m(a,f-m(n,d))),l(m(e,j-m(q,b))),l(f-d),i(k(m(p,e),j-b)),l(f-d),i(e),l(m(a,f-m(c,d)))]}else{a=i(a);b=l(j-b);d=l(f-d);e=i(e);e=[e,a,e,a,b,a,b,a,b,d,b,d,e,d,e,d]}return e},Cb:function(){var a=this.d,b=a.currentStyle,d=a.runtimeStyle,e=a.tagName,c=h.U===6,g;if(c&&(e in h.Ub||e==="FIELDSET")||e==="BUTTON"||e==="INPUT"&& 44 | a.type in h.Id){d.borderWidth="";e=this.g.s.tc;for(g=e.length;g--;){c=e[g];d["padding"+c]="";d["padding"+c]=h.m(b["padding"+c]).a(a)+h.m(b["border"+c+"Width"]).a(a)+(h.U!==8&&g%2?1:0)}d.borderWidth=0}else if(c){if(a.childNodes.length!==1||a.firstChild.tagName!=="ie6-mask"){b=I.createElement("ie6-mask");e=b.style;e.visibility="visible";for(e.zoom=1;e=a.firstChild;)b.appendChild(e);a.appendChild(b);d.visibility="hidden"}}else d.borderColor="transparent"},qe:function(){},k:function(){var a=this.wb,b; 45 | if(a)for(b in a)a.hasOwnProperty(b)&&this.Ba(b)}});h.Nc=h.v.sa({j:function(){var a=this.bd;for(var b in a)if(a.hasOwnProperty(b)&&a[b].j())return true;return false},bc:function(){var a=this.fc(),b=a,d;d=a.currentStyle.position;var e=a=0;e=this.o.n();var c=this.g.jb.i(),g=e.kc;if(d==="fixed"&&h.U>6){a=e.x*g;e=e.y*g;b=d}else{do b=b.offsetParent;while(b&&b.currentStyle.position==="static");if(b){d=b.getBoundingClientRect();b=b.currentStyle;a=(e.x-d.left)*g-(parseFloat(b.borderLeftWidth)||0);e=(e.y-d.top)* 46 | g-(parseFloat(b.borderTopWidth)||0)}else{b=I.documentElement;a=(e.x+b.scrollLeft-b.clientLeft)*g;e=(e.y+b.scrollTop-b.clientTop)*g}b="absolute"}return"direction:ltr;behavior:none !important;position:"+b+";background:none;left:"+a+"px;top:"+e+"px;"+(c.yc&&c.Wb?"":"display:none;")},wc:function(){var a=this.xb();if(a&&(this.o.qc()||this.g.jb.L()))a.style.cssText=this.bc()+"z-index:"+this.cc()},fc:function(){var a=this.d;return a.tagName in h.vc?a.offsetParent:a},xb:function(){var a=this.sb;if(!a)a=this.sb= 47 | I.getElementById("_pie"+h.Q.pa(this));return a},cc:function(){var a=this.d.currentStyle;return a.position==="static"?"-1":a.zIndex},Hb:function(){var a=this.Wa,b,d,e,c,g,i;if(this.j())if(a)if(b=this.vb){d=0;for(e=a.length;d'];d=0;for(e=a.length;d");this.fc().insertAdjacentHTML("beforeBegin",b.join(""));this.xb().style.zIndex=this.cc();this.vb=a;this.Wa=0}}else this.wc();else this.k()},Xd:function(a,b){return a.eb-b.eb},td:function(a){(this.Wa||(this.Wa=[])).push(a)},Td:function(a){var b=this.vb,d;if(b)for(d=b.length;d--;)if(b[d]===a){b.splice(d,1);break}},k:function(){var a=this.sb,b;if(a&&(b=a.parentNode))b.removeChild(a);delete this.sb;delete this.vb}}); 49 | I.createElement("css3pie");h.Ec=h.v.sa({H:2,ra:function(){var a=this.g;return a.K.L()||a.F.L()},j:function(){var a=this.g;return a.D.j()||a.F.j()||a.K.j()||a.na.j()&&a.na.i().Eb},Ca:function(){var a=this.o.n();if(a.f&&a.e){this.od();this.pd()}},od:function(){var a=this.g.K.i(),b=this.o.n(),d=this.d,e=a&&a.color,c;if(e&&e.Y()>0){this.gc();c=this.B("bgColor",this.H);c.ta(b.f,b.e);c.fa("path",this.ac(b,a.cd));c.w("color",e.M(d));a=e.Y();a<1&&c.w("opacity",a)}else this.Ba("bgColor")},pd:function(){var a= 50 | this.g.K.i(),b=this.o.n();a=a&&a.R;var d,e,c,g,i;if(a){this.gc();c=b.f;g=b.e;for(i=a.length;i--;){d=a[i];e=this.B("bgImage"+i,this.H+(0.5-i/1E3));e.fa("path",this.ac(b,d.Xa));e.ta(c,g);if(d.V==="linear-gradient")this.Yc(e,d);else{e.w("type","tile","color","none");this.Qd(e,d.Db,i)}}}for(i=a?a.length:0;this.Ba("bgImage"+i++););},Qd:function(a,b,d){h.Q.Bc(b,function(e){var c=this.d,g=this.o.n(),i=g.f,j=g.e;if(i&&j){var f=this.g,k=f.K,l=k.i().R[d],m=k.vd(l.Ya,this.o,f.s,f.da);f=(l.Za||h.Ma.Kc).a(this.d, 51 | m.f,m.e,e.f,e.e);k=this.wd(l.Ya);c=l.ma?l.ma.coords(c,m.f-f.f,m.e-f.e):{x:0,y:0};l=l.bb;var o=0,t=0,r=i+1,u=j+1,q=h.U===8?0:1;m=Math.round(k.x+c.x)+0.5;k=Math.round(k.y+c.y)+0.5;a.w("src",b,"position",m/i+","+k/j,"size",f.f!==e.f||f.e!==e.e||g.kc!==1||screen.logicalXDPI/screen.deviceXDPI!==1?h.Qa.gb(f.f)+"pt,"+h.Qa.gb(f.e)+"pt":"");if(l&&l!=="repeat"){if(l==="repeat-x"||l==="no-repeat"){o=k+1;u=k+f.e+q}if(l==="repeat-y"||l==="no-repeat"){t=m+1;r=m+f.f+q}a.Ha("clip","rect("+o+"px,"+r+"px,"+u+"px,"+ 52 | t+"px)")}}},this)},ac:function(a,b){var d=0,e=0,c=0,g=0,i=this.d,j=this.g,f;if(b&&b!=="border-box")if((f=j.s.i())&&(f=f.O)){d+=f.t.a(i);e+=f.r.a(i);c+=f.b.a(i);g+=f.l.a(i)}if(b==="content-box")if(b=j.da.i()){d+=b.t.a(i);e+=b.r.a(i);c+=b.b.a(i);g+=b.l.a(i)}return"m0,0r0,0m"+a.f*2+","+a.e*2+"r0,0"+this.Z(d,e,c,g,2)},wd:function(a){var b=this.d,d=this.g,e=0,c=0,g;if(a!=="border-box")if((g=d.s.i())&&(g=g.O)){e+=g.l.a(b);c+=g.t.a(b)}if(a==="content-box")if(a=d.da.i()){e+=a.l.a(b);c+=a.t.a(b)}return{x:e, 53 | y:c}},Yc:function(a,b){var d=this.d,e=this.o.n(),c=e.f,g=e.e;e=b.ua;var i=e.length,j=Math.PI,f=h.nb.yd(d,c,g,b),k=f.la;b=f.Kd;var l,m;for(c=k%90?Math.atan2(f.ce-f.sd,(f.rd-f.be)*c/g)/j*180-90:-k;c<0;)c+=360;c%=360;g=[];j=[];for(f=0;f0){k[0]=this.Z(0,0,0,0,2);p=a.t;if(p==="double")k.push(this.Z(j/3,l/3,m/ 57 | 3,g/3,2)+this.Z(j*2/3,l*2/3,m*2/3,g*2/3,2));else if(p in n){c=this.$(j,l,m,g,2);this.S(k,c[2],c[4],j*2,0,0,a.t);this.S(k,c[7],c[9],l*2,(e.f-l)*2,1,a.r);this.S(k,c[12],c[10],m*2,(e.e-m)*2,0,a.b);this.S(k,c[1],c[15],g*2,0,1,a.l)}k.push(this.Z(j,l,m,g,2));b.push(k.join(""),i.t.M(d))}}else{o=this.$(0,0,0,0,2);c=this.$(j,l,m,g,2);for(q in u)if(u.hasOwnProperty(q)&&i[q].Y()>0){p=u[q];var v=p[0],z=p[1],x=p[2],B=p[3],G=p[4],H=p[5],L=p[6],J=p[7],F=p[8],Q=q==="t"||q==="l";p=a[q];k[0]="al"+o[v]+","+o[z]+","+ 58 | f(o[x]-o[v])+","+f(o[B]-o[z])+","+(F+45)*65535+",-2949075ae"+o[G]+","+o[H]+","+f(o[L]-o[G])+","+f(o[J]-o[H])+","+F*65535+",-2949075";if(p in this.nd){if(!t)if(p==="double"){t=this.$(j/3,l/3,m/3,g/3,2);r=this.$(j*2/3,l*2/3,m*2/3,g*2/3,2)}else t=r=this.$(j/2,l/2,m/2,g/2,2);k.push("ae"+t[G]+","+t[H]+","+f(t[L]-t[G])+","+f(t[J]-t[H])+","+(F-45)*65535+",2949075ae"+t[v]+","+t[z]+","+f(t[x]-t[v])+","+f(t[B]-t[z])+","+F*65535+",2949075x");if(p!=="double"){s=i[q].M(d)+((p==="groove"?Q:!Q)?" darken(128)":" lighten(128)"); 59 | b.push(k.join(""),s);k.length=0}k.push("al"+r[v]+","+r[z]+","+f(r[x]-r[v])+","+f(r[B]-r[z])+","+(F+45)*65535+",-2949075ae"+r[G]+","+r[H]+","+f(r[L]-r[G])+","+f(r[J]-r[H])+","+F*65535+",-2949075")}k.push("ae"+c[G]+","+c[H]+","+f(c[L]-c[G])+","+f(c[J]-c[H])+","+(F-45)*65535+",2949075ae"+c[v]+","+c[z]+","+f(c[x]-c[v])+","+f(c[B]-c[z])+","+F*65535+",2949075x");if(p in n)q==="t"?this.S(k,c[2],c[4],j*2,0,0,p):q==="r"?this.S(k,c[7],c[9],l*2,(e.f-l)*2,1,p):q==="b"?this.S(k,c[12],c[10],m*2,(e.e-m)*2,0,p): 60 | this.S(k,c[1],c[15],g*2,0,1,p);s=i[q].M(d);if(p in this.Vb)s+=(p==="groove"||p==="outset"?Q:!Q)?" lighten(128)":" darken(128)";b.push(k.join(""),s);k.length=0}}}return b},k:function(){if(this.Zb||!this.g.D.j())this.d.runtimeStyle.borderColor="";h.v.k.call(this)}});h.Fc=h.v.sa({H:5,ra:function(){return this.g.D.L()},j:function(){return this.g.D.j()},Ca:function(){var a=this.g.D.i(),b=this.g.s.i(),d=this.o.n(),e=this.d;h.Q.Bc(a.src,function(c){function g(s,v,z,x,B,G,H,L,J){var F=Math.max;if(!n||!p|| 61 | !x||!B||!L||!J)s.Ha("display","none");else{x=F(x,0);B=F(B,0);s.fa("path","m0,0l"+x*2+",0l"+x*2+","+B*2+"l0,"+B*2+"x");s.w("src",q,"type","tile","position","0,0","origin",(G-0.5)/n+","+(H-0.5)/p,"size",h.Qa.gb(x*n/L)+"pt,"+h.Qa.gb(B*p/J)+"pt");s.ta(x,B);s.Ha("left",v+"px","top",z+"px","display","")}}var i=d.f,j=d.e,f=h.m("0"),k=a.O||(b?b.O:{t:f,r:f,b:f,l:f});f=k.t.a(e);var l=k.r.a(e),m=k.b.a(e);k=k.l.a(e);var o=a.slice,t=o.t.a(e),r=o.r.a(e),u=o.b.a(e);o=o.l.a(e);var q=a.src,n=c.f,p=c.e;g(this.N("tl"), 62 | 0,0,k,f,0,0,o,t);g(this.N("t"),k,0,i-k-l,f,o,0,n-o-r,t);g(this.N("tr"),i-l,0,l,f,n-r,0,r,t);g(this.N("r"),i-l,f,l,j-f-m,n-r,t,r,p-t-u);g(this.N("br"),i-l,j-m,l,m,n-r,p-u,r,u);g(this.N("b"),k,j-m,i-k-l,m,o,p-u,n-o-r,u);g(this.N("bl"),0,j-m,k,m,0,p-u,o,u);g(this.N("l"),0,f,k,j-f-m,0,t,o,p-t-u);g(this.N("c"),k,f,i-k-l,j-f-m,o,t,a.fill?n-o-r:0,p-t-u)},this)},N:function(a){return this.B("borderImage_"+a,this.H)},rc:function(){if(this.j()){var a=this.d,b=a.runtimeStyle,d=this.g.D.i().O;b.borderStyle="solid"; 63 | if(d){b.borderTopWidth=d.t.a(a);b.borderRightWidth=d.r.a(a);b.borderBottomWidth=d.b.a(a);b.borderLeftWidth=d.l.a(a)}this.Cb()}},k:function(){var a=this.d.runtimeStyle;a.borderStyle="";if(this.Zb||!this.g.s.j())a.borderColor=a.borderWidth="";h.v.k.call(this)}});h.Hc=h.v.sa({H:1,ra:function(){var a=this.g;return a.na.L()||a.F.L()},j:function(){var a=this.g.na;return a.j()&&a.i().Ga[0]},Ca:function(){var a=this.d,b=this.g,d=b.na.i().Ga;b=b.F.i();var e=d.length,c=e,g=this.o.n(),i=g.f;g=g.e;for(var j, 64 | f,k,l,m,o,t,r,u,q;c--;){j=d[c];k=j.le.a(a);l=j.me.a(a);m=j.ae.a(a);o=j.blur.a(a);j=j.color;t=j.Y();j=j.M(a);f=-m-o;if(!b&&o)b=h.lb.Cc;r=this.Z(f,f,f,f,2,b);f=this.B("shadow"+c,this.H+(0.5-c/1E3));if(o){u=(m+o)*2+i;q=(m+o)*2+g;m=u?o*2/u:0;o=q?o*2/q:0;if(m>0.5||o>0.5){u=0.5/Math.max(m,o);m*=u;o*=u;t*=u*u}f.w("type","gradienttitle","color2",j,"focusposition",m+","+o,"focussize",1-m*2+","+(1-o*2),"opacity",0,"o:opacity2",t)}else f.w("type","solid","opacity",t);f.fa("path",r);f.w("color",j);f.Ha("left", 65 | k+"px","top",l+"px");f.ta(i,g)}for(;this.Ba("shadow"+e++););}});h.Mc=h.v.sa({H:6,ra:function(){var a=this.g;return this.d.src!==this.Tc||a.F.L()},j:function(){var a=this.g;return a.F.j()||a.K.jc()},Ca:function(){this.Tc=g;this.Fd();var a=this.B("img",this.H),b=this.o.n(),d=b.f;b=b.e;var e=this.g.s.i(),c=e&&e.O;e=this.d;var g=e.src,i=Math.round,j=this.g.da.i();if(!c||h.U<7){c=h.m("0");c={t:c,r:c,b:c,l:c}}a.fa("path",this.Z(i(c.t.a(e)+j.t.a(e)),i(c.r.a(e)+j.r.a(e)),i(c.b.a(e)+j.b.a(e)),i(c.l.a(e)+j.l.a(e)), 66 | 2));a.w("type","frame","src",g,"position",(d?0.5/d:0)+","+(b?0.5/b:0));a.ta(d,b)},Fd:function(){this.d.runtimeStyle.filter="alpha(opacity=0)"},k:function(){h.v.k.call(this);this.d.runtimeStyle.filter=""}});h.mb=function(){function a(n,p){n.className+=" "+p}function b(n){var p=q.slice.call(arguments,1),s=p.length;setTimeout(function(){if(n)for(;s--;)a(n,p[s])},0)}function d(n){var p=q.slice.call(arguments,1),s=p.length;setTimeout(function(){if(n)for(;s--;){var v=p[s];v=u[v]||(u[v]=new RegExp("\\b"+ 67 | v+"\\b","g"));n.className=n.className.replace(v,"")}},0)}function e(n){if(/^normal$/i.test(n.currentStyle.zoom))n.runtimeStyle.zoom=1}function c(n){function p(w){try{n.filters["DXImageTransform.Microsoft.Gradient"].Enabled=w}catch(y){}}function s(){if(!V){var w,y,C=n.currentStyle,D=n.parentNode,W=C.getAttribute(i)==="true",S=C.getAttribute(f)!=="false",da=C.getAttribute(k)!=="false";R=C.getAttribute(j);R=T>7?R!=="false":R==="true";if(!X){X=1;e(n);for(var $=n,ea=1;$=$.previousSibling;)if($.nodeType=== 68 | 1){ea=0;break}ea&&a(n,t)}E.cb();if(W&&(y=E.n())&&(w=I.documentElement||I.body)&&(y.y>w.clientHeight||y.x>w.clientWidth||y.y+y.e<0||y.x+y.f<0)){if(!aa){aa=1;h.pb.ca(s)}}else{V=1;aa=X=0;h.pb.Ka(s);if(T===9){A={K:new h.Ib(n),D:new h.Jb(n),s:new h.Kb(n),da:new h.Ob(n)};P=[A.K,A.s,A.D,A.da];M=new h.pe(n,E,A);N=[new h.ne(n,E,A,M),new h.oe(n,E,A,M)]}else{if(D){if(C.position==="static"&&D.currentStyle.position==="static")n.runtimeStyle.position="relative";T<8&&D===n.offsetParent&&e(D)}A={K:new h.Ib(n),s:new h.Kb(n), 69 | D:new h.Jb(n),F:new h.lb(n),na:new h.Ic(n),da:new h.Ob(n),jb:new h.Pc(n)};P=[A.K,A.s,A.D,A.F,A.na,A.da,A.jb];M=new h.Nc(n,E,A);N=[new h.Hc(n,E,A,M),new h.Ec(n,E,A,M),new h.Gc(n,E,A,M),new h.Fc(n,E,A,M)];n.tagName==="IMG"&&N.push(new h.Mc(n,E,A,M));M.bd=N}if(w=n.currentStyle.getAttribute(h.z+"watch-ancestors")){w=parseInt(w,10);y=0;for(C=n.parentNode;C&&(w==="NaN"||y++=0&&""!==q)do{if(u=r[s].match(i),!u||!f[u[3]]){A=!1;break}if(v=u[2],w=u[5],y=w,x=u[7],z=f[u[3]],z=z.call?z():z,x&&(y="px"===x?Number(w):g[x]?(w*b/g[x]).toFixed(2):"em"===x||"rem"===x?16*w:u[8]?(w/u[8]).toFixed(2):"dppx"===x?96*w:"dpcm"===x?.3937*w:Number(w)),A="min-"===v&&y?z>=y:"max-"===v&&y?y>=z:y?z===y:!!z,!A)break}while(s--);if(A)break}while(d--);return o?!A:A},k=function(){var g=c.getElementsByTagName("head")[0],h=c.createElement("style"),i=null,j=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],k=0,l=j.length,m="#mediamatchjs { position: relative; z-index: 0; }",n=function(){return a.innerWidth||d.clientWidth},o=function(){return a.innerHeight||d.clientHeight},p=a.screen,q=p.width,r=p.height,s=p.colorDepth,t=p.logicalXDPI,u=a.devicePixelRatio||p.deviceXDPI/t||1;for(b=t||96*u,f["aspect-ratio"]=function(){return(n()/o()).toFixed(2)},f.orientation=function(){return o()>=n()?"portrait":"landscape"},f.width=n,f.height=o,f["device-width"]=q,f["device-height"]=r,f["device-aspect-ratio"]=(q/r).toFixed(2),f.color=s,f["color-index"]=Math.pow(2,s),f.resolution=b,f["device-pixel-ratio"]=u,h.type="text/css",h.id="mediamatchjs",g.appendChild(h),i=a.getComputedStyle&&a.getComputedStyle(h)||h.currentStyle;l>k;k++)m+="@media "+j[k]+" { #mediamatchjs { z-index: "+k+" } }";h.styleSheet?h.styleSheet.cssText=m:h.textContent=m,e=j[1*i.zIndex||0],g.removeChild(h)};k(),a.styleMedia={matchMedium:j,type:e}}}(window); -------------------------------------------------------------------------------- /PIE_IE9.js: -------------------------------------------------------------------------------- 1 | (function(V,O){var d=V.PIE||(V.PIE={});d.va=function(b){var a,c,e,f,h=arguments;a=1;for(c=h.length;a",c[0];);d.Ua=b;if(b===6)d.i=d.i.replace(/^-/,"");d.P=O.documentMode||d.Ua;a.innerHTML='';b=a.firstChild;b.style.behavior="url(#default#VML)";d.Db=typeof b.adj==="object"})();(function(){var b=0,a={};d.na={Sa:function(c){return c&&c._pieId||(c._pieId="_"+b++)},Zc:function(c,e,f){var h=a[c],l,j;if(h)Object.prototype.toString.call(h)==="[object Array]"?h.push([e,f]):e.call(f,h);else{j=a[c]=[[e,f]]; 3 | l=new Image;l.onload=function(){h=a[c]={g:l.width,f:l.height};for(var g=0,m=j.length;g=180?0:a,b<90||b>270?0:c);e=f[0];f=f[1];a=a-e;c=c-f;return{T:b, 4 | ic:e,jc:f,Pc:a,Qc:c,zc:d.Ga.fc(a,c,e,f)}},Fc:function(b,a,c,e,f){if(c===0||c===180)return[b,f];else if(c===90||c===270)return[e,a];else{c=Math.tan((c-90)*Math.PI/180);b=c*b-a;a=-1/c;e=a*e-f;f=a-c;return[(e-b)/f,(c*e-a*b)/f]}},fc:function(b,a,c,e){b=c-b;a=e-a;return Math.abs(b===0?a:a===0?b:Math.sqrt(b*b+a*a))}};d.L=function(){this.Za=[];this.yb={}};d.L.prototype={I:function(b){var a=d.na.Sa(b),c=this.yb,e=this.Za;if(!(a in c)){c[a]=e.length;e.push(b)}},aa:function(b){b=d.na.Sa(b);var a=this.yb;if(b&& 5 | b in a){delete this.Za[a[b]];delete a[b]}},Y:function(){for(var b=this.Za,a=b.length;a--;)b[a]&&b[a]()}};d.ha=new d.L;d.ha.Kc=function(){var b=this,a;if(!b.Lc){a=O.documentElement.currentStyle.getAttribute(d.i+"poll-interval")||250;(function c(){b.Y();setTimeout(c,a)})();b.Lc=1}};(function(){function b(){d.D.Y();V.detachEvent("onunload",b);V.PIE=null}d.D=new d.L;V.attachEvent("onunload",b);d.D.Oa=function(a,c,e){a.attachEvent(c,e);this.I(function(){a.detachEvent(c,e)})}})();d.ja=new d.L;d.D.Oa(V, 6 | "onresize",function(){d.ja.Y()});(function(){function b(){d.Ja.Y()}d.Ja=new d.L;d.D.Oa(V,"onscroll",b);d.ja.I(b)})();d.Ia=new d.L;d.D.Oa(O,"onmouseup",function(){d.Ia.Y()});d.gd=function(){function b(g){this.q=g}var a=O.createElement("length-calc"),c=O.body||O.documentElement,e=a.style,f={},h=["mm","cm","in","pt","pc"],l=h.length,j={};e.position="absolute";e.top=e.left="-9999px";for(c.appendChild(a);l--;){e.width="100"+h[l];f[h[l]]=a.offsetWidth/100}c.removeChild(a);e.width="1em";b.prototype={bb:/(px|em|ex|mm|cm|in|pt|pc|%)$/, 7 | qc:function(){var g=this.Cc;if(g===void 0)g=this.Cc=parseFloat(this.q);return g},Ta:function(){var g=this.Vc;if(!g)g=this.Vc=(g=this.q.match(this.bb))&&g[0]||"px";return g},c:function(g,m){var i=this.qc(),n=this.Ta();switch(n){case "px":return i;case "%":return i*(typeof m==="function"?m():m)/100;case "em":return i*this.Ra(g);case "ex":return i*this.Ra(g)/2;default:return i*f[n]}},Ra:function(g){var m=g.currentStyle.fontSize,i,n;if(m.indexOf("px")>0)return parseFloat(m);else if(g.tagName in d.ac){n= 8 | this;i=g.parentNode;return d.m(m).c(i,function(){return n.Ra(i)})}else{g.appendChild(a);m=a.offsetWidth;a.parentNode===g&&g.removeChild(a);return m}}};b.td=function(g){return g/f.pt};d.m=function(g){return j[g]||(j[g]=new b(g))};return b}();d.Fa=function(){function b(a){this.J=a}d.m("50%");b.prototype={};return b}();d.ea=function(){function b(a,c){this.g=a;this.f=c}b.prototype={c:function(a,c,e,f,h){var l=this.g,j=this.f,g=c/e;f=f/h;if(l==="contain"){l=f>g?c:e*f;j=f>g?c/f:e}else if(l==="cover"){l= 9 | f1)i-=1;return 255*(6*i<1?g+(m-g)*i*6:2*i<1?m:3*i<2?g+(m-g)*(2/3-i)*6:g)}function a(g){this.q=g}var c={};a.Jc=/\s*rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/;a.uc=/\s*hsla?\(\s*(\d*\.?\d+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/;a.wa={};for(var e="black|0|navy|3k|darkblue|b|mediumblue|1u|blue|1e|darkgreen|jk1|green|5j4|teal|3k|darkcyan|26j|deepskyblue|ad0|darkturquoise|2xe|mediumspringgreen|8nd|lime|va|springgreen|3j|aqua|3k|cyan|0|midnightblue|xunl|dodgerblue|7ogf|lightseagreen|2zsb|forestgreen|2lbs|seagreen|guut|darkslategray|12pk|limegreen|4wkj|mediumseagreen|dwlb|turquoise|5v8f|royalblue|r2p|steelblue|75qr|darkslateblue|2fh3|mediumturquoise|ta9|indigo|32d2|darkolivegreen|emr1|cadetblue|ebu9|cornflowerblue|6z4d|mediumaquamarine|3459|dimgray|3nwf|slateblue|1bok|olivedrab|1opi|slategray|6y5p|lightslategray|9vk9|mediumslateblue|5g0l|lawngreen|27ma|chartreuse|48ao|aquamarine|5w|maroon|18|purple|3k|olive|p6o|gray|3k|lightslateblue|5j7j|skyblue|4q98|lightskyblue|f|blueviolet|3bhk|darkred|15we|darkmagenta|3v|saddlebrown|djc|darkseagreen|69vg|lightgreen|1og1|mediumpurple|3ivc|darkviolet|sfv|palegreen|6zt1|darkorchid|awk|yellowgreen|292e|sienna|7r3v|brown|6sxp|darkgray|6bgf|lightblue|5vlp|greenyellow|7k9|paleturquoise|2pxb|lightsteelblue|169c|powderblue|5jc|firebrick|1rgc|darkgoldenrod|8z55|mediumorchid|2jm0|rosybrown|34jg|darkkhaki|1mfw|silver|49jp|mediumvioletred|8w5h|indianred|8tef|peru|82r|violetred|3ntd|feldspar|212d|chocolate|16eh|tan|ewe|lightgrey|1kqv|palevioletred|6h8g|metle|fnp|orchid|2dj2|goldenrod|abu|crimson|20ik|gainsboro|13mo|plum|12pt|burlywood|1j8q|lightcyan|3794|lavender|8agr|darksalmon|3rsw|violet|6wz8|palegoldenrod|k3g|lightcoral|28k6|khaki|k5o|aliceblue|3n7|honeydew|1dd|azure|f|sandybrown|5469|wheat|1q37|beige|4kp|whitesmoke|p|mintcream|1z9|ghostwhite|46bp|salmon|25bn|antiquewhite|l7p|linen|zz|lightgoldenrodyellow|1yk|oldlace|46qc|red|1gka|magenta|73|fuchsia|0|deeppink|3v8|orangered|9kd|tomato|5zb|hotpink|19p|coral|49o|darkorange|2i8|lightsalmon|41m|orange|w6|lightpink|3i9|pink|1ze|gold|4dx|peachpuff|qh|navajowhite|s4|moccasin|16w|bisque|f|mistyrose|t|blanchedalmond|1d8|papayawhip|so|lavenderblush|80|seashell|zd|cornsilk|ku|lemonchiffon|dt|floralwhite|z|snow|a|yellow|sm|lightyellow|68|ivory|g|white|f".split("|"), 11 | f=0,h=e.length,l=0,j;f=this.sa.length)return f();l=this.ch;h=this.sa.substring(this.ch);j=h.charAt(0);switch(j){case "#":if(g=h.match(this.sc)){this.ch+=g[0].length;return e(a.h,g[0])}break;case '"':case "'":if(g=h.match(this.Rc)){this.ch+=g[0].length;return e(a.Pb,g[2]||g[3]||"")}break;case "/":case ",":this.ch++; 15 | return e(a.Ha,j);case "u":if(g=h.match(this.url)){this.ch+=g[0].length;return e(a.URL,g[2]||g[3]||g[4]||"")}}if(g=h.match(this.Dc)){j=g[0];this.ch+=j.length;if(h.charAt(j.length)==="%"){this.ch++;return e(a.ka,j+"%")}if(g=h.substring(j.length).match(this.wb)){j+=g[0];this.ch+=g[0].length;return e(this.Wc[g[0].toLowerCase()]||a.Jb,j)}return e(a.S,j)}if(g=h.match(this.wb)){j=g[0];this.ch+=j.length;if(j.toLowerCase()in d.Hb.wa||j==="currentColor"||j==="transparent")return e(a.h,j);if(h.charAt(j.length)=== 16 | "("){this.ch++;if(j.toLowerCase()in this.cc){h=function(q){return q&&q.e&a.S};g=function(q){return q&&q.e&(a.S|a.ka)};var i=function(q,x){return q&&q.a===x},n=function(){return m.next(1)};if((j.charAt(0)==="r"?g(n()):h(n()))&&i(n(),",")&&g(n())&&i(n(),",")&&g(n())&&(j==="rgb"||j==="hsa"||i(n(),",")&&h(n()))&&i(n(),")"))return e(a.h,this.sa.substring(l,this.ch));return f()}return e(a.jb,j)}return e(a.R,j)}this.ch++;return e(a.hb,j)},n:function(){return this.J[this.$-- -2]},all:function(){for(;this.next();); 17 | return this.J},ba:function(c,e){for(var f=[],h,l;h=this.next();){if(c(h)){l=true;this.n();break}f.push(h)}return e&&!l?null:f}};return b}();d.gb=function(b){this.d=b};d.gb.prototype={F:0,Gc:function(){var b=this.Na,a;return!b||(a=this.Z())&&(b.x!==a.x||b.y!==a.y)},Nc:function(){var b=this.Na,a;return!b||(a=this.Z())&&(b.g!==a.g||b.f!==a.f)},vb:function(){var b=this.d,a=b.getBoundingClientRect(),c=d.P===9,e=d.Ua===7,f=a.right-a.left;return{x:a.left,y:a.top,g:c||e?b.offsetWidth:f,f:c||e?b.offsetHeight: 18 | a.bottom-a.top,rd:e&&f?b.offsetWidth/f:1}},Z:function(){return this.F?this.oa||(this.oa=this.vb()):this.vb()},rc:function(){return!!this.Na},ua:function(){++this.F},Da:function(){if(!--this.F){if(this.oa)this.Na=this.oa;this.oa=null}}};(function(){function b(a){var c=d.na.Sa(a);return function(){if(this.F){var e=this.ob||(this.ob={});return c in e?e[c]:(e[c]=a.call(this))}else return a.call(this)}}d.k={F:0,xa:function(a){function c(e){this.d=e;this.nb=this.O()}d.va(c.prototype,d.k,a);c.Ub={};return c}, 19 | w:function(){var a=this.O(),c=this.constructor.Ub;return a?a in c?c[a]:(c[a]=this.za(a)):null},O:b(function(){var a=this.d,c=this.constructor,e=a.style;a=a.currentStyle;var f=this.Pa,h=this.ab,l=c.Sb||(c.Sb=d.i+f);c=c.Tb||(c.Tb=d.Ka+h.charAt(0).toUpperCase()+h.substring(1));return e[c]||a.getAttribute(l)||e[h]||a.getAttribute(f)}),B:b(function(){return!!this.w()}),rb:b(function(){var a=this.O(),c=a!==this.nb;this.nb=a;return c}),X:b,ua:function(){++this.F},Da:function(){--this.F||delete this.ob}}})(); 20 | d.db=d.k.xa({Pa:d.i+"background",ab:d.Ka+"Background",Wb:{scroll:1,fixed:1,local:1},Ba:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},Ab:{"padding-box":1,"border-box":1,"content-box":1},Hc:{top:1,right:1,bottom:1,left:1,center:1},Oc:{contain:1,cover:1},Tc:{top:1,bottom:1},Ac:{left:1,right:1},Aa:{ga:"backgroundClip",h:"backgroundColor",K:"backgroundImage",ia:"backgroundOrigin",s:"backgroundPosition",u:"backgroundRepeat",ma:"backgroundSize"},za:function(b){function a(o){return o&&(o.H()&&d.m(o.a)|| 21 | o.a==="auto"&&"auto")}var c=this.d.currentStyle,e,f,h,l=d.p.mb,j=l.Ha,g=l.R,m=l.h,i,n,q=0,x=this.Hc,t,v,r,k,s={G:[]};if(this.Qa()){e=new d.p(b);for(h={};f=e.next();){i=f.e;n=f.a;if(!h.z&&i&l.jb&&n==="linear-gradient"){t={Q:[],z:n};for(v={};f=e.next();){i=f.e;n=f.a;if(i&l.hb&&n===")"){v.color&&t.Q.push(v);t.Q.length>1&&d.va(h,t);break}if(i&m){if(t.T||t.ta){f=e.n();if(f.e!==j)break;e.next()}v={color:d.N(n)};f=e.next();if(f.H())v.zb=d.m(f.a);else e.n()}else if(i&l.da&&!t.T&&!t.ta&&!v.color&&!t.Q.length)t.T= 22 | new d.Gb(f.a);else if(i&l.R&&n==="to"&&!t.ta&&!t.T&&!v.color&&!t.Q.length){r=this.Tc;k=this.Ac;f=e.ba(function(o){return!(o&&o.e&l.R&&(o.a in r||o.a in k))});i=f.length;f=[f[0]&&f[0].a,f[1]&&f[1].a];if(i<1||i>2||i>1&&(f[0]in r&&f[1]in r||f[0]in k&&f[1]in k))break;t.ta=f}else if(i&j&&n===","){if(v.color){t.Q.push(v);v={}}}else break}}else if(!h.z&&i&l.URL){h.xb=n;h.z="image"}else if((f&&f.H()||f.e&g&&f.a in x)&&!h.V){e.n();h.V=new d.Fa(e.ba(function(o){return!(o&&o.H()||o.e&g&&o.a in x)},false))}else if(i& 23 | g)if(n in this.Ba&&!h.Va)h.Va=n;else if(n in this.Ab&&!h.qa){h.qa=n;if((f=e.next())&&f.e&g&&f.a in this.Ab)h.pa=f.a;else{h.pa=n;e.n()}}else if(n in this.Wb&&!h.pb)h.pb=n;else return null;else if(i&m&&!s.color)s.color=d.N(n);else if(i&j&&n==="/"&&!h.ra&&h.V){f=e.next();if(f.e&g&&f.a in this.Oc)h.ra=new d.ea(f.a);else if(t=a(f)){v=a(e.next());if(!v){v=t;e.n()}h.ra=new d.ea(t,v)}else return null}else if(i&j&&n===","&&h.z){h.$a=b.substring(q,e.ch-1);q=e.ch;s.G.push(h);h={}}else return null}if(h.z){h.$a= 24 | b.substring(q);s.G.push(h)}s.bc=h.pa}else this.Eb(d.P<9?function(){var o=this.Aa,p=c[o.s+"X"],y=c[o.s+"Y"],A=c[o.K],B=c[o.h];if(B!=="transparent")s.color=d.N(B);if(A!=="none")s.G=[{z:"image",xb:(new d.p(A)).next().a,Va:c[o.u],V:new d.Fa((new d.p(p+" "+y)).all())}]}:function(){var o=this.Aa,p=/\s*,\s*/,y=c[o.K].split(p),A=c[o.h],B,K,L,M,G,I;if(A!=="transparent")s.color=d.N(A);if((M=y.length)&&y[0]!=="none"){A=c[o.u].split(p);B=c[o.s].split(p);K=c[o.ia].split(p);L=c[o.ga].split(p);o=c[o.ma].split(p); 25 | s.G=[];for(p=0;p8,c=this.Aa,e=this.d.runtimeStyle,f=e[c.K],h=e[c.h],l=e[c.u],j,g,m,i;if(f)e[c.K]="";if(h)e[c.h]="";if(l)e[c.u]="";if(a){j=e[c.ga];g=e[c.ia];i=e[c.s];m=e[c.ma];if(j)e[c.ga]="";if(g)e[c.ia]="";if(i)e[c.s]= 26 | "";if(m)e[c.ma]=""}b=b.call(this);if(f)e[c.K]=f;if(h)e[c.h]=h;if(l)e[c.u]=l;if(a){if(j)e[c.ga]=j;if(g)e[c.ia]=g;if(i)e[c.s]=i;if(m)e[c.ma]=m}return b},O:d.k.X(function(){return this.Qa()||this.Eb(function(){var b=this.d.currentStyle,a=this.Aa;return b[a.h]+" "+b[a.K]+" "+b[a.u]+" "+b[a.s+"X"]+" "+b[a.s+"Y"]})}),Qa:d.k.X(function(){var b=this.d;return b.style[this.ab]||b.currentStyle.getAttribute(this.Pa)}),lc:function(b,a,c,e){var f=this.d,h=a.Z();a=h.g;h=h.f;if(b!=="border-box")if((c=c.w())&&(c= 27 | c.ca)){a-=c.l.c(f)+c.r.c(f);h-=c.t.c(f)+c.b.c(f)}if(b==="content-box")if(b=e.w()){a-=b.l.c(f)+b.r.c(f);h-=b.t.c(f)+b.b.c(f)}return{g:a,f:h}},yc:function(){var b=0;if(d.Ua<7){b=this.d;b=""+(b.style[d.Ka+"PngFix"]||b.currentStyle.getAttribute(d.i+"png-fix"))==="true"}return b},B:d.k.X(function(){return(this.Qa()||this.yc())&&!!this.w()})});d.fb=d.k.xa({Mc:["Top","Right","Bottom","Left"],Bc:{thin:"1px",medium:"3px",thick:"5px"},za:function(){var b={},a={},c={},e=false,f=true,h=true,l=true;this.Fb(function(){for(var j= 28 | this.d.currentStyle,g=0,m,i,n,q,x,t,v;g<4;g++){n=this.Mc[g];v=n.charAt(0).toLowerCase();m=a[v]=j["border"+n+"Style"];i=j["border"+n+"Color"];n=j["border"+n+"Width"];if(g>0){if(m!==q)h=false;if(i!==x)f=false;if(n!==t)l=false}q=m;x=i;t=n;c[v]=d.N(i);n=b[v]=d.m(a[v]==="none"?"0":this.Bc[n]||n);if(n.c(this.d)>0)e=true}});return e?{ca:b,ud:a,md:c,wd:l,nd:f,vd:h}:null},O:d.k.X(function(){var b=this.d,a=b.currentStyle,c;b.tagName in d.Sc&&b.offsetParent.currentStyle.borderCollapse==="collapse"||this.Fb(function(){c= 29 | a.borderWidth+"|"+a.borderStyle+"|"+a.borderColor});return c}),Fb:function(b){var a=this.d.runtimeStyle,c=a.borderWidth,e=a.borderColor;if(c)a.borderWidth="";if(e)a.borderColor="";b=b.call(this);if(c)a.borderWidth=c;if(e)a.borderColor=e;return b}});d.eb=d.k.xa({Pa:"border-image",ab:"borderImage",Ba:{stretch:1,round:1,repeat:1,space:1},za:function(b){var a=null,c,e,f,h,l,j,g=0,m=d.p.mb,i=m.R,n=m.S,q=m.ka;if(b){c=new d.p(b);a={};for(var x=function(r){return r&&r.e&m.Ha&&r.a==="/"},t=function(r){return r&& 30 | r.e&i&&r.a==="fill"},v=function(){h=c.ba(function(r){return!(r.e&(n|q))});if(t(c.next())&&!a.fill)a.fill=true;else c.n();if(x(c.next())){g++;l=c.ba(function(r){return!r.H()&&!(r.e&i&&r.a==="auto")});if(x(c.next())){g++;j=c.ba(function(r){return!r.Wa()})}}else c.n()};b=c.next();){e=b.e;f=b.a;if(e&(n|q)&&!h){c.n();v()}else if(t(b)&&!a.fill){a.fill=true;v()}else if(e&i&&this.Ba[f]&&!a.repeat){a.repeat={f:f};if(b=c.next())if(b.e&i&&this.Ba[b.a])a.repeat.cb=b.a;else c.n()}else if(e&m.URL&&!a.src)a.src= 31 | f;else return null}if(!a.src||!h||h.length<1||h.length>4||l&&l.length>4||g===1&&l.length<1||j&&j.length>4||g===2&&j.length<1)return null;if(!a.repeat)a.repeat={f:"stretch"};if(!a.repeat.cb)a.repeat.cb=a.repeat.f;b=function(r,k){return{t:k(r[0]),r:k(r[1]||r[0]),b:k(r[2]||r[0]),l:k(r[3]||r[1]||r[0])}};a.slice=b(h,function(r){return d.m(r.e&n?r.a+"px":r.a)});if(l&&l[0])a.ca=b(l,function(r){return r.H()?d.m(r.a):r.a});if(j&&j[0])a.sd=b(j,function(r){return r.Wa()?d.m(r.a):r.a})}return a}});d.kb=d.k.xa({za:function(b){b= 32 | new d.p(b);for(var a=[],c;(c=b.next())&&c.H();)a.push(d.m(c.a));return a.length>0&&a.length<5?{t:a[0],r:a[1]||a[0],b:a[2]||a[0],l:a[3]||a[1]||a[0]}:null},O:d.k.X(function(){var b=this.d,a=b.runtimeStyle,c=a.padding;if(c)a.padding="";b=b.currentStyle.padding;if(c)a.padding=c;return b})});d.la={Ya:function(b){function a(c,e,f,h){this.d=c;this.qb=e;this.C=f;this.parent=h}d.va(a.prototype,d.la,b);return a},Xa:function(){return false},Bb:d.hc,Ea:function(){this.B()?this.sb():this.j()},tc:function(){this.d.runtimeStyle.borderColor= 33 | "transparent"},j:function(){}};d.Mb=d.la.Ya({Ec:/^,+|,+$/g,xc:/,+/g,Ca:function(b,a){(this.La||(this.La=[]))[b]=a||void 0},Ea:function(){var b=this.La,a;if(b&&(a=b.join(",").replace(this.Ec,"").replace(this.xc,","))!==this.Rb)this.Rb=this.d.runtimeStyle.background=a},j:function(){this.d.runtimeStyle.background="";delete this.La}});d.Kb=d.la.Ya({gc:O.createElement("canvas"),U:1,Xa:function(){return this.C.M.rb()},B:function(){var b=this.C;return b.M.B()||b.v.B()},sb:function(){var b=this.C,a=b.M,c= 34 | a.w(),e,f,h=0,l,j;if(c){e=[];if(f=c.G)for(;l=f[h++];)if(l.z==="linear-gradient"){j=a.lc(e.qa,this.qb,b.W,b.ya);j=(l.ra||d.ea.Ib).c(this.d,j.g,j.f,j.g,j.f);try{e.push("url("+this.mc(l,j.g,j.f)+") "+this.Yb(l.V)+" / "+j.g+"px "+j.f+"px "+(l.pb||"")+" "+(l.qa||"")+" "+(l.pa||""))}catch(g){}}else e.push(l.$a);if(c.color)e.push(c.color.q+" "+(c.bc||""));this.parent.Ca(this.U,e.join(","))}},Yb:function(b){return b?b.J.map(function(a){return a.a}).join(" "):"0 0"},mc:function(b,a,c){var e=this.d,f=b.Q,h= 35 | f.length,l=d.Ga.nc(e,a,c,b);b=l.zc;var j=this.gc,g=j.getContext("2d");l=g.createLinearGradient(l.Pc,l.Qc,l.ic,l.jc);var m=[],i,n,q;for(i=0;i');J.push('');H++}var n=e.g,q=e.f,x=m.g,t=m.f,v=b.vc(a.src,x,t),r=b.u,k=b.Ob;m=b.Nb;var s=Math.ceil,o=d.m("0"),p=a.ca||(c?c.ca:{t:o,r:o,b:o,l:o});o=p.t.c(j);var y=p.r.c(j),A=p.b.c(j);p=p.l.c(j);var B=a.slice,K=B.t.c(j),L=B.r.c(j),M=B.b.c(j);B=B.l.c(j);var G=n-p-y,I=q-o-A,U=x-B-L,E=t-K-M,P=h===k?G:U*o/K,S=l===k?I:E*y/L,N=h===k?G:U*A/M;k=l===k?I:E*p/B;var T= 38 | [],J=[],H=0;if(h===m){P-=(P-(G%P||P))/s(G/P);N-=(N-(G%N||N))/s(G/N)}if(l===m){S-=(S-(I%S||S))/s(I/S);k-=(k-(I%k||k))/s(I/k)}m=[''];i(0,0,p,o,0,0,B,K,p,o);i(p,0,G,o,B,0,U,K,P,o);i(n-y,0,y,o,x-L,0,L,K,y,o);i(0,o,p,I,0,K,B,E,p,k);if(a.fill)i(p,o,G,I,B,K,U,E,P||N||U,k||S||E);i(n-y,o,y,I,x-L,K,L,E,y,S);i(0,q-A,p,A,0,t-M,B,M,p,A);i(p,q-A,G,A,B,t-M,U,M,N,A);i(n-y,q-A,y,A,x-L,t-M,L,M,y,A);m.push(""+ 39 | T.join("\n")+""+J.join("\n")+"");b.parent.Ca(b.U,"url(data:image/svg+xml,"+escape(m.join(""))+") no-repeat border-box border-box");g&&b.parent.Ea()},b);g=1},vc:function(){var b={};return function(a,c,e){var f=b[a],h;if(!f){f=new Image;h=O.createElement("canvas");f.src=a;h.width=c;h.height=e;h.getContext("2d").drawImage(f,0,0);f=b[a]=h.toDataURL()}return f}}(),Bb:function(){if(this.B()){var b=this.d,a=b.runtimeStyle,c=this.C.v.w().ca;a.borderStyle="solid";if(c){a.borderTopWidth=c.t.c(b)+ 40 | "px";a.borderRightWidth=c.r.c(b)+"px";a.borderBottomWidth=c.b.c(b)+"px";a.borderLeftWidth=c.l.c(b)+"px"}this.tc()}},j:function(){var b=this.d.runtimeStyle;this.parent.Ca(this.U);b.borderColor=b.borderStyle=b.borderWidth=""}});d.ib=function(){function b(k,s){k.className+=" "+s}function a(k){var s=r.slice.call(arguments,1),o=s.length;setTimeout(function(){if(k)for(;o--;)b(k,s[o])},0)}function c(k){var s=r.slice.call(arguments,1),o=s.length;setTimeout(function(){if(k)for(;o--;){var p=s[o];p=v[p]||(v[p]= 41 | new RegExp("\\b"+p+"\\b","g"));k.className=k.className.replace(p,"")}},0)}function e(k){if(/^normal$/i.test(k.currentStyle.zoom))k.runtimeStyle.zoom=1}function f(k){function s(u){try{k.filters["DXImageTransform.Microsoft.Gradient"].Enabled=u}catch(z){}}function o(){if(!Y){var u,z,D=k.currentStyle,F=k.parentNode,ca=D.getAttribute(l)==="true",ba=D.getAttribute(g)!=="false",ea=D.getAttribute(m)!=="false";R=D.getAttribute(j);R=N>7?R!=="false":R==="true";if(!W){W=1;e(k);for(var da=k,fa=1;da=da.previousSibling;)if(da.nodeType=== 42 | 1){fa=0;break}fa&&b(k,x)}C.ua();if(ca&&(z=C.Z())&&(u=O.documentElement||O.body)&&(z.y>u.clientHeight||z.x>u.clientWidth||z.y+z.f<0||z.x+z.g<0)){if(!aa){aa=1;d.Ja.I(o)}}else{Y=1;aa=W=0;d.Ja.aa(o);if(N===9){w={M:new d.db(k),v:new d.eb(k),W:new d.fb(k),ya:new d.kb(k)};Q=[w.M,w.W,w.v,w.ya];H=new d.Mb(k,C,w);J=[new d.Kb(k,C,w,H),new d.Lb(k,C,w,H)]}else{if(F){if(D.position==="static"&&F.currentStyle.position==="static")k.runtimeStyle.position="relative";N<8&&F===k.offsetParent&&e(F)}w={M:new d.db(k),W:new d.fb(k), 43 | v:new d.eb(k),Zb:new d.bd(k),$b:new d.ed(k),ya:new d.kb(k),Xc:new d.jd(k)};Q=[w.M,w.W,w.v,w.Zb,w.$b,w.ya,w.Xc];H=new d.hd(k,C,w);J=[new d.dd(k,C,w,H),new d.$c(k,C,w,H),new d.cd(k,C,w,H),new d.ad(k,C,w,H)];k.tagName==="IMG"&&J.push(new d.fd(k,C,w,H));H.ld=J}if(u=k.currentStyle.getAttribute(d.i+"watch-ancestors")){u=parseInt(u,10);z=0;for(D=k.parentNode;D&&(u==="NaN"||z++ 再也不用为迁就低版本IE而额外写代码了,直接按照现代浏览器标准写,最后加入selectivizr即可。一个字,爽! 11 | 12 | > 大神们常说:PC端写css3,优雅降级才是王道。但是鉴于草根前端er们在项目组中的地位,往往无法说服领导。今天,你不用再取舍,使用本项目尽情使用css3吧 13 | 14 | ## 使用方式: 15 | 16 | [PIE.htc](PIE.htc)、[PIE_IE9.js](PIE_IE9.js)、[PIE_IE678.js](PIE_IE678.js)、[selectivizr.js](selectivizr.js)、[prefixfree.min.js](prefixfree.min.js) 将这5个文件,放在js目录下,然后在html中,引入所有css文件之后加入: 17 | 18 | ```HTML 19 | 20 | ``` 21 | 22 | ## 功能列表 23 | - [css3免前缀](http://leaverou.github.io/prefixfree/) 24 | - [圆角(border-radius)](http://gucong3000.github.io/css-book/properties/border/border-radius.htm) 25 | - [盒阴影(box-shadow)](http://gucong3000.github.io/css-book/properties/border/box-shadow.htm) 26 | - [边框图(border-image)](http://gucong3000.github.io/css-book/properties/border/border-image.htm) 27 | - [线性背景渐变(linear-gradient)](http://gucong3000.github.io/css-book/values/image/linear-gradient%28%29.htm) 28 | - [媒体查询(mediaqueries)](http://www.w3.org/TR/css3-mediaqueries/) 除了普通的媒体查询,还可以这样使用:`@media all and(msie:8) {}`、`@media all and(min-msie:8) {}`、`@media all and(max-msie:8) {}` 29 | - display: inline-block; (为IE6-IE7提供支持) 30 | - position: fixed (IE6, 部分支持,自动以`absolute`替换) 31 | - IE6下png图片透明(如果未使用其他css3属性,单纯需要修复IE6 png问题,可在css中写入:`-pie-png-fix: true;`) 32 | - 相对长度单位: [vw](http://gucong3000.github.io/css-book/values/length/vw.htm), [vh](http://gucong3000.github.io/css-book/values/length/vh.htm), [vmin](http://gucong3000.github.io/css-book/values/length/vmin.htm), [vmax](http://gucong3000.github.io/css-book/values/length/vmax.htm), [rem](http://gucong3000.github.io/css-book/values/length/rem.htm) 33 | - css选择符(建议与nwmatcher共同使用)。[详见selectivizr官方网站](http://selectivizr.com/#how) 34 | - IE9下自动关掉与css3属性冲突的几个滤镜(Alpha|Matrix|Gradient|FlipH|FlipV) 35 | 36 | ## 注意事项 37 | 38 | - 不支持style属性中的行内样式。 39 | - 应该尽量避免使用` 40 | 41 | 42 |
43 |
44 |
45 |
46 | 47 | -------------------------------------------------------------------------------- /tests/master/css/common.css: -------------------------------------------------------------------------------- 1 | /* selectivizr test suite common CSS styles 2 | ------------------------------------------------------------------------------------ */ 3 | form { 4 | background: linear-gradient(to bottom, #FFFFFF, #999999); 5 | box-shadow: 0 0 4px 0 #000000; 6 | border-radius: 15px; 7 | position: relative; 8 | padding: 20px; 9 | margin: 20px; 10 | } 11 | form:hover { 12 | background: linear-gradient(to bottom, #999999, #FFFFFF); 13 | } 14 | body { 15 | padding: 0; 16 | margin: 0; 17 | font: 12px/24px Arial; 18 | } 19 | 20 | h2 { 21 | font-size:160%; 22 | margin: 0; 23 | padding: 2em 0 0 0; 24 | } 25 | h3 { 26 | font-size:120%; 27 | margin: 0; 28 | padding: 1.5em 0 0.25em 0; 29 | border-bottom: 1px solid #666; 30 | color: #444; 31 | } 32 | p { 33 | color: #444; 34 | line-height:1.4em; 35 | } 36 | table { 37 | border: none; 38 | border-spacing: 0px; 39 | width: 100%; 40 | } 41 | td, th { 42 | border: none; 43 | padding: 0; 44 | text-indent: 5px; 45 | border-bottom: 1px solid #666; 46 | } 47 | tr { 48 | background: #c00; 49 | } 50 | span { 51 | display: block; 52 | } 53 | td,span { 54 | height: 24px; 55 | } 56 | form select { 57 | width: 200px; 58 | } 59 | .ui { 60 | position: absolute; 61 | right: 10px; 62 | max-width: 60px; 63 | } 64 | td:first-child:not(:only-child) { 65 | width: 300px; 66 | } 67 | iframe { 68 | display: block; 69 | width: 100%; 70 | height: 24px; 71 | } 72 | 73 | b { 74 | display: none; 75 | } 76 | 77 | .warn { 78 | background: #fc6; 79 | padding: 4px 8px; 80 | color: #000; 81 | font-weight: bold; 82 | } -------------------------------------------------------------------------------- /tests/master/css/iframe.css: -------------------------------------------------------------------------------- 1 | /* iframe test: content styles 2 | ------------------------------------------------------------------------------------ */ 3 | 4 | tr:only-child { 5 | background: #0c0; 6 | } 7 | 8 | td:first-child:not(:only-child) { 9 | width: 300px; 10 | } -------------------------------------------------------------------------------- /tests/master/css/import-print.css: -------------------------------------------------------------------------------- 1 | /* if @media type filtering doesn't work we want this test to fail */ 2 | 3 | tr#import-print { 4 | background: #c00; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /tests/master/css/import-quoted-double.css: -------------------------------------------------------------------------------- 1 | #import-quoted-double { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-quoted-single.css: -------------------------------------------------------------------------------- 1 | #import-quoted-single { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-screen.css: -------------------------------------------------------------------------------- 1 | tr#import-screen { 2 | background: #0c0; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /tests/master/css/import-url-fully-qualified-path.css: -------------------------------------------------------------------------------- 1 | #import-url-fully-qualfied { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-url-protocol-relative-path.css: -------------------------------------------------------------------------------- 1 | #import-url-protocol-relative { 2 | background: #0c0; 3 | } -------------------------------------------------------------------------------- /tests/master/css/import-url-quoted-double.css: -------------------------------------------------------------------------------- 1 | #import-url-quoted-double { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-url-quoted-single.css: -------------------------------------------------------------------------------- 1 | #import-url-quoted-single { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-url-root-relative-path.css: -------------------------------------------------------------------------------- 1 | #import-url-root-relative { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/import-url-unquoted.css: -------------------------------------------------------------------------------- 1 | #import-url-unquoted { background-color: #0c0 } -------------------------------------------------------------------------------- /tests/master/css/master.css: -------------------------------------------------------------------------------- 1 | 2 | /* base styles for the test page 3 | ------------------------------------------------------------------------------------ */ 4 | 5 | @import url("common.css"); 6 | 7 | 8 | /* import syntax checks 9 | ------------------------------------------------------------------------------------ */ 10 | 11 | @import url("import-url-quoted-double.css"); 12 | @import url('import-url-quoted-single.css'); 13 | @import url(import-url-unquoted.css); 14 | @import "import-quoted-double.css"; 15 | @import "import-quoted-single.css"; 16 | @import url("nested/import-url-relative-path.css"); 17 | 18 | /* 19 | * The following urls will be specific to your own server configuration and will fail 20 | * if used "out of the box". To test root-relative and fully qualifed url's you will 21 | * need to adjust the paths below: 22 | */ 23 | 24 | @import url("/selectivizr-git/tests/master/css/import-url-root-relative-path.css"); 25 | @import url("http://iis/selectivizr-git/tests/master/css/import-url-fully-qualified-path.css"); 26 | @import url("//iis/selectivizr-git/tests/master/css/import-url-protocol-relative-path.css"); 27 | 28 | /* Check that media types are honoured and their defined styles don't mix */ 29 | @import url("import-print.css") print; 30 | @import url("import-screen.css") screen; 31 | 32 | #import-print { 33 | background: #0c0; 34 | } 35 | 36 | #import-screen { 37 | background: #c00; 38 | } 39 | 40 | body { 41 | padding: 10px; 42 | } 43 | 44 | 45 | /* url tests 46 | ------------------------------------------------------------------------------------ */ 47 | 48 | #url-data { 49 | background: #c00 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEUAzAD///+JPJoHAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFnRFWHRDcmVhdGlvbiBUaW1lADEyLzIwLzEwJjOU9gAAABh0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzT7MfTgAAAAxJREFUCJljYCANAAAAMAABQ5S3ZwAAAABJRU5ErkJggg=="); 50 | } 51 | 52 | #url-remote { 53 | background: #c00 url("https://github.com/keithclark/selectivizr/raw/master/tests/master/css/nested/test.png"); 54 | } 55 | 56 | #url-htc { 57 | behavior: url(htc/test.htc); 58 | } 59 | 60 | /* pseudo-class tests 61 | ------------------------------------------------------------------------------------ */ 62 | 63 | #target:target, 64 | html:root #root 65 | { background: #0c0 } 66 | 67 | #empty b { display: block; height:24px;} 68 | #empty span { margin-top:-24px; } 69 | 70 | .empty:empty, 71 | .not-empty:not(:empty) 72 | { background: #0c0 } 73 | 74 | #first-child:first-child, 75 | #not-first-child:not(:first-child), 76 | #last-child:last-child, 77 | #not-last-child:not(:last-child), 78 | #nth-child:nth-child(3), 79 | #not-nth-child:not(:nth-child(3)), 80 | #only-child:only-child, 81 | #only-child2:only-child, 82 | #nth-last-child:nth-last-child(4), 83 | #not-nth-last-child:not(:nth-last-child(4)), 84 | #not-only-child:not(:only-child) 85 | { background: #0c0 } 86 | 87 | #first-of-type:first-of-type, 88 | #not-first-of-type:not(:first-of-type), 89 | #last-of-type:last-of-type, 90 | #not-last-of-type:not(:last-of-type), 91 | #nth-of-type:nth-of-type(3), 92 | #not-nth-of-type:not(:nth-of-type(3)), 93 | #only-of-type:only-of-type, 94 | #only-of-type2:only-of-type, 95 | #not-only-of-type:not(:only-of-type), 96 | #nth-last-of-type:nth-last-of-type(4), 97 | #not-nth-last-of-type:not(:nth-last-of-type(4)) 98 | { background: #0c0 } 99 | 100 | 101 | /* UI pseudo-class tests 102 | ------------------------------------------------------------------------------------ */ 103 | 104 | #hover:hover, 105 | #not-hover:not(:hover) 106 | { background: #0c0 } 107 | 108 | /* IE6 doesn't support the '+' combinator so these will always fail so they have been 109 | split from the rules declared above. Need to find a way to get these tests running 110 | without using the '+' combinator so they run in IE6 */ 111 | 112 | #checked:checked+span, 113 | #not-checked:not(:checked)+span, 114 | #enabled:enabled+span, 115 | #disabled:disabled+span, 116 | #focus:focus+span, 117 | #not-focus:not(:focus)+span 118 | { background: #0c0 } 119 | 120 | 121 | /* attribute selector tests 122 | ------------------------------------------------------------------------------------ */ 123 | 124 | #attr-whitespace-list[rel~="b2"], 125 | #attr-whitespace-list2[rel~="b2"], 126 | #attr-hyphen-list[rel|="a1"], 127 | #attr-beginswith[rel^="te"], 128 | #attr-endswith[rel$="st"], 129 | #attr-contains[rel*="es"], 130 | #attr-beginswith2 td, 131 | #attr-endswith2 td, 132 | #attr-contains2 td 133 | { background: #0c0 } 134 | 135 | /* test if native atribute selectors are broken in IE7/8 */ 136 | #attr-beginswith2[rel^=""] td, 137 | #attr-endswith2[rel$=""] td, 138 | #attr-contains2[rel*=""] td 139 | { background: #c00 } 140 | 141 | 142 | /* url syntax tests 143 | ------------------------------------------------------------------------------------ */ 144 | 145 | #url-quoted-double { background: url("nested/test.png")} 146 | #url-quoted-single { background: url('nested/test.png')} 147 | #url-unquoted { background: url(nested/test.png)} 148 | 149 | 150 | /* html5 tests 151 | ------------------------------------------------------------------------------------ */ 152 | 153 | #html5-first-of-type header:first-of-type, 154 | #html5-not-first-of-type header:not(:first-of-type), 155 | #html5-2 header[role='banner'] { 156 | display: block; 157 | background:#0c0 158 | } 159 | 160 | 161 | /* misc 162 | ------------------------------------------------------------------------------------ */ 163 | 164 | /* expose selectors that give false positives (i.e. jQuery 1.3) */ 165 | #xxx-type tr:only-of-type:nth-of-type(2), 166 | #only-of-type:only-of-type:nth-of-type(2), 167 | #only-of-type2:only-of-type:nth-of-type(2), 168 | html:root:not(html:root) #root { background:#c00} 169 | -------------------------------------------------------------------------------- /tests/master/css/nested/import-url-relative-path.css: -------------------------------------------------------------------------------- 1 | #import-url-relative { background-image: url("test.png") } 2 | 3 | #url-nows { background-image:url("test.png")} -------------------------------------------------------------------------------- /tests/master/css/nested/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gucong3000/selectivizr/690a2de0cc9a5a3348d998f2ffcaec3a1254ee72/tests/master/css/nested/test.png -------------------------------------------------------------------------------- /tests/master/htc/test.htc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/master/html/domready-postload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
Post DOMReady injectionTesting that selectivizr runs if dynamically injected into a page after DOMReady
23 | 24 | -------------------------------------------------------------------------------- /tests/master/html/iframe-hash.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
<iframe src="#/fragment/">Testing that selectivizr initializes when the host document URL contains a hash
16 | 17 | -------------------------------------------------------------------------------- /tests/master/html/iframe-query.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
<iframe src="?/fragment/">Testing that selectivizr initializes when the host document URL contains a query string
16 | 17 | -------------------------------------------------------------------------------- /tests/master/html/iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
<iframe src="...">Testing that selectivizr loads when used in a iframe
16 | 17 | -------------------------------------------------------------------------------- /tests/master/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Selectivizr test suite 5 | 6 | 46 | 47 | 48 | 49 | 50 | 51 |

Selectivizr test suite

52 | 53 |
54 | 55 |
56 |

57 | 58 | 59 |

60 |
61 | 62 |

selectivizr parsing / implementation tests

63 |

This group of tests have been designed to designed to check various internal functions to ensure that 64 | selectivizr is correctly parsing style sheet content. The results of these tests are NOT dependant on 65 | the choice of selector library and should therefore always pass.

66 | 67 |

@import syntax tests

68 | 69 | 70 | 71 | 73 | 74 | 75 | 77 | 78 | 79 | 81 | 82 | 83 | 85 | 86 | 87 | 89 | 90 | 91 | 93 | 94 | 95 | 97 | 98 | 99 | 101 | 102 | 103 | 105 | 106 | 107 | 109 | 110 | 111 | 113 |
@import url("...")Testing @import rule with url wrapped in double quotes and prefixed with the url() qualifier 72 |
@import url('...')Testing @import rule with url wrapped in single quotes and prefixed with the url() qualifier 76 |
@import url(...)Testing @import rule with url without quotes and prefixed with the url() qualifier 80 |
@import "..."Testing @import rule with url wrapped in double quotes without the url() qualifier 84 |
@import '...'Testing @import rule with url wrapped in single quotes without the url() qualifier 88 |
@import url("../file.css")Testing @import rule with a relative path 92 |
@import url("/path/file.css")Testing @import rule with a root-relative path (see note in 'master.css') 96 |
@import url("http://domain/path/file.css")Testing @import rule with a fully qualified path (see note in 'master.css') 100 |
@import url("//domain/path/file.css")Testing @import rule with a protocol relative path 104 |
@import url("...") printTesting @import rule with a print media type 108 |
@import url("...") screenTesting @import rule with a screen media type 112 |
114 | 115 |

url syntax tests

116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 |
background: url("...")Testing css property containing a url wrapped in double quotes and prefixed with the url() qualifier
background: url('...')Testing css property containing a url wrapped in single quotes and prefixed with the url() qualifier
background: url(...)Testing css property containing a url without quotes and prefixed with the url() qualifier
background:url(...)Testing css property containing a url without white-space between the property and value
background: url("data:...")Testing css property containing a url that uses the data scheme
background: url("http://domain/test.png")Testing css property referring to an asset on an external domain
background: url("js/test.htc")Testing behavior url resolves relative to the document url
146 | 147 |

iframe tests

148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 |
162 | 163 | 164 |

Selector engine tests

165 |

These tests are designed to identify problems or unsupported features with specific selector engines.

166 | 167 |

Attribute selectors

168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 |
E[foo~="bar"]Check attribute "foo" contains value "bar" in a list of whitespace-separated values
E[foo~="bar"]Check attribute "foo" contains the value "bar" when "bar" is the only value in the list
E[foo|="bar"]Check attribute "foo" begins with the value "bar" in a list of hyphen-separated values
E[foo^="bar"]Check attribute "foo" begins with the value "bar"
E[foo$="bar"]Check attribute "foo" ends with the value "bar"
E[foo*="bar"]Check attribute "foo" contains the value "bar"
E[foo^=""]Check library catches native IE selector bug when testing against empty attribute value
E[foo$=""]Check library catches native IE selector bug when testing against empty attribute value
E[foo*=""]Check library catches native IE selector bug when testing against empty attribute value
208 | 209 |

UI pseudo-class tests

210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 |
:hover
:not(:hover)
:focus
:not(:focus)
:enabled
:disabled
:checked
:not(:checked)
236 | 240 | 241 |

Pseudo-class tests

242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 |
:root
:target
250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 273 |
:empty
:empty (with HTML comment)
  :not(:empty)
:not(:empty) (empty child tag)
274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 |
:first-child
:not(:first-child)
:nth-child(x)
:not(:nth-child(x))
:only-child
:only-child (with HTML comment)
:not(:only-child)
:nth-last-child(x)
:not(:nth-last-child(x))
:not(:last-child)
:last-child
310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 |
:first-of-type
:not(:first-of-type)
:nth-of-type(x)
:not(:nth-of-type(x))
:only-of-type
:only-of-type (with HTML comment)
:not(:only-of-type)
:nth-last-of-type(x)
:not(:nth-last-of-type(x))
:not(:last-of-type)
:last-of-type
349 | 350 |

HTML5 element tests

351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 |
:first-of-type
:not(:first-of-type)
360 |
361 | 362 | 363 | -------------------------------------------------------------------------------- /tests/master/js/test.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // we need this for the HTML5 tests in IE 4 | document.createElement("header"); 5 | 6 | // determine which selector engine to use for the tests 7 | var selectedEngine = window.selectedEngine = (location.search == "") ? defaultEngine : unescape(location.search.substring(9)); 8 | 9 | // write a script tag to include the required selector library 10 | document.write(" -------------------------------------------------------------------------------- /tests/wolf.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | #bigBigWolf { 6 | position: absolute; 7 | left: 50%; 8 | top: 50%; 9 | margin-left: -300px; 10 | margin-top: -300px; 11 | width: 600px; 12 | height: 600px; 13 | } 14 | #bigBigWolf div { 15 | position: absolute; 16 | } 17 | #bigBigWolf .face { 18 | left: 127px; 19 | bottom: 67px; 20 | width: 380px; 21 | height: 380px; 22 | border: 3px solid #181818; 23 | background: #666B6F; 24 | z-index: 0; 25 | border-radius: 230px 180px 300px 220px; 26 | transform: rotate(60deg); 27 | } 28 | #bigBigWolf .face .left { 29 | left: 30px; 30 | top: 317px; 31 | width: 181px; 32 | height: 106px; 33 | border: 3px solid #181818; 34 | border-top: 0; 35 | background: #666B6F; 36 | z-index: 10; 37 | border-radius: 0 0 0 2800px/0 0 0 1200px; 38 | transform: rotate(30deg); 39 | } 40 | #bigBigWolf .face .right { 41 | left: 105px; 42 | top: -45px; 43 | width: 160px; 44 | height: 90px; 45 | border: 3px solid #181818; 46 | border-bottom: 0; 47 | background: #666B6F; 48 | z-index: 10; 49 | border-radius: 2800px 0 0 0/2000px 0 0 0; 50 | transform: rotate(335deg); 51 | } 52 | #bigBigWolf .face .cover1 { 53 | left: 160px; 54 | top: 415px; 55 | width: 28px; 56 | height: 40px; 57 | border: 3px solid #181818; 58 | border-bottom: 0; 59 | background: #FFF; 60 | z-index: 20; 61 | border-radius: 600px 400px 400px 400px/1200px 700px 150px 150px; 62 | } 63 | #bigBigWolf .face .cover2 { 64 | left: 163px; 65 | top: 433px; 66 | width: 40px; 67 | height: 40px; 68 | background: #FFF; 69 | z-index: 30; 70 | border-radius: 20px; 71 | } 72 | #bigBigWolf .face .cover3 { 73 | left: 53px; 74 | top: 285px; 75 | width: 74px; 76 | height: 74px; 77 | background: #666B6F; 78 | z-index: 40; 79 | border-radius: 37px; 80 | } 81 | #bigBigWolf .face .cover4 { 82 | left: 227px; 83 | top: -80px; 84 | width: 25px; 85 | height: 40px; 86 | border: 3px solid #181818; 87 | border-bottom: 0; 88 | background: #FFF; 89 | z-index: 20; 90 | border-radius: 600px 400px 400px 400px/1200px 700px 150px 150px; 91 | transform: rotate(170deg); 92 | } 93 | #bigBigWolf .face .cover5 { 94 | left: 214px; 95 | top: -90px; 96 | width: 60px; 97 | height: 30px; 98 | background: #FFF; 99 | z-index: 40; 100 | transform: rotate(28deg); 101 | } 102 | #bigBigWolf .ear { 103 | z-index: 0; 104 | } 105 | #bigBigWolf .ear .left { 106 | left: 48px; 107 | top: 167px; 108 | width: 180px; 109 | height: 120px; 110 | border: 3px solid #181818; 111 | border-right: 0; 112 | background: #666B6F; 113 | z-index: 0; 114 | border-radius: 295px 0 0 0/200px 0 0 0; 115 | transform: rotate(51deg); 116 | } 117 | #bigBigWolf .ear .left .inner { 118 | left: -3px; 119 | top: 88px; 120 | width: 180px; 121 | height: 30px; 122 | border: 3px solid #181818; 123 | border-right: 0; 124 | background: #96979C; 125 | z-index: 10; 126 | border-radius: 1000px 0 0 0/200px 0 0 0; 127 | } 128 | #bigBigWolf .ear .left .cover1 { 129 | left: 83px; 130 | top: 30px; 131 | width: 132px; 132 | height: 65px; 133 | background: #666B6F; 134 | z-index: 20; 135 | border-radius: 0 0 1200px 0/0 0 200px 0; 136 | transform: rotate(90deg); 137 | } 138 | #bigBigWolf .ear .left .cover2 { 139 | left: 111px; 140 | top: 91px; 141 | width: 12px; 142 | height: 8px; 143 | border: 3px solid #181818; 144 | border-right: 0; 145 | background: #666B6F; 146 | z-index: 30; 147 | border-radius: 30px 0 0 0/20px 0 0 0; 148 | transform: rotate(345deg); 149 | } 150 | #bigBigWolf .ear .left .cover3 { 151 | left: 114px; 152 | top: 104px; 153 | width: 12px; 154 | height: 6px; 155 | border: 3px solid #181818; 156 | border-right: 0; 157 | background: #666B6F; 158 | z-index: 30; 159 | border-radius: 30px 0 0 0/20px 0 0 0; 160 | transform: rotate(325deg); 161 | } 162 | #bigBigWolf .ear .left .cover4 { 163 | left: 123px; 164 | top: 113px; 165 | width: 11px; 166 | height: 4px; 167 | border: 3px solid #181818; 168 | border-right: 0; 169 | border-top: 0; 170 | background: #666B6F; 171 | z-index: 30; 172 | border-radius: 0 0 0 30px/0 0 0 20px; 173 | transform: rotate(62deg); 174 | } 175 | #bigBigWolf .ear .right { 176 | left: 340px; 177 | top: 78px; 178 | width: 140px; 179 | height: 100px; 180 | border: 3px solid #181818; 181 | border-left: 0; 182 | background: #666B6F; 183 | z-index: 10; 184 | border-radius: 0 245px 0 0/0 190px 0 0; 185 | transform: rotate(275deg); 186 | } 187 | #bigBigWolf .ear .right .inner { 188 | left: -1px; 189 | top: 68px; 190 | width: 140px; 191 | height: 30px; 192 | border: 3px solid #181818; 193 | border-left: 0; 194 | background: #96979C; 195 | z-index: 10; 196 | border-radius: 0 1200px 0 0/0 300px 0 0; 197 | } 198 | #bigBigWolf .ear .right .cover1 { 199 | left: -49px; 200 | top: 25px; 201 | width: 120px; 202 | height: 40px; 203 | border: 3px solid #181818; 204 | border-bottom: 0; 205 | background: #666B6F; 206 | z-index: 20; 207 | border-radius: 0 1200px 0 0/0 300px 0 0; 208 | transform: rotate(101deg); 209 | } 210 | #bigBigWolf .ear .right .cover2 { 211 | left: -135px; 212 | top: 117px; 213 | width: 145px; 214 | height: 40px; 215 | border: 3px solid #181818; 216 | border-bottom: 0; 217 | background: #666B6F; 218 | z-index: 30; 219 | border-radius: 0 1100px 0 0/0 300px 0 0; 220 | transform: rotate(133deg); 221 | } 222 | #bigBigWolf .ear .right .cover3 { 223 | left: -85px; 224 | top: 15px; 225 | width: 80px; 226 | height: 80px; 227 | background: #666B6F; 228 | z-index: 40; 229 | } 230 | #bigBigWolf .ear .right .cover4 { 231 | left: -142px; 232 | top: 144px; 233 | width: 40px; 234 | height: 40px; 235 | background: #666B6F; 236 | z-index: 50; 237 | border-radius: 20px; 238 | } 239 | #bigBigWolf .ear .right .cover5 { 240 | left: 32px; 241 | top: 87px; 242 | width: 30px; 243 | height: 30px; 244 | border: 3px solid #181818; 245 | border-bottom: 0; 246 | border-left: 0; 247 | background: #FFF; 248 | z-index: 50; 249 | border-radius: 30px; 250 | transform: rotate(313deg); 251 | } 252 | #bigBigWolf .hat { 253 | left: 137px; 254 | top: 115px; 255 | width: 238px; 256 | height: 100px; 257 | border: 3px solid #181818; 258 | background: #E09E86; 259 | z-index: 40; 260 | border-radius: 2000px 700px 450px 300px/1000px 700px 450px 200px; 261 | transform: rotate(338deg); 262 | } 263 | #bigBigWolf .hat .inner { 264 | right: -1px; 265 | top: 1px; 266 | width: 238px; 267 | height: 80px; 268 | border: 3px solid #181818; 269 | background: #CF6A36; 270 | z-index: 0; 271 | border-radius: 2400px 800px 450px 400px/1200px 800px 450px 200px; 272 | transform: rotate(357deg); 273 | } 274 | #bigBigWolf .hat .patch { 275 | right: -3px; 276 | top: -7px; 277 | width: 110px; 278 | height: 50px; 279 | border: 3px solid #181818; 280 | background: #EFC978; 281 | z-index: 10; 282 | border-radius: 500px 300px 100px 100px/300px 200px 100px 100px; 283 | transform: rotate(20deg); 284 | } 285 | #bigBigWolf .hat .patch .line1, #bigBigWolf .hat .patch .line2, #bigBigWolf .hat .patch .line3, #bigBigWolf .hat .patch .line4, #bigBigWolf .hat .patch .line5, #bigBigWolf .hat .patch .line6, #bigBigWolf .hat .patch .line7, #bigBigWolf .hat .patch .line8, #bigBigWolf .hat .patch .line9, #bigBigWolf .hat .patch .line10 { 286 | left: -7px; 287 | top: 30px; 288 | width: 18px; 289 | height: 2px; 290 | font-size: 0; 291 | background: #181818; 292 | z-index: 20px; 293 | transform: rotate(350deg); 294 | } 295 | #bigBigWolf .hat .patch .line2 { 296 | left: -13px; 297 | top: 42px; 298 | width: 20px; 299 | transform: rotate(340deg); 300 | } 301 | #bigBigWolf .hat .patch .line3 { 302 | left: 5px; 303 | top: 50px; 304 | width: 17px; 305 | transform: rotate(300deg); 306 | } 307 | #bigBigWolf .hat .patch .line4 { 308 | left: 20px; 309 | top: 53px; 310 | width: 17px; 311 | transform: rotate(270deg); 312 | } 313 | #bigBigWolf .hat .patch .line5 { 314 | left: 35px; 315 | top: 50px; 316 | width: 14px; 317 | transform: rotate(290deg); 318 | } 319 | #bigBigWolf .hat .patch .line6 { 320 | left: 50px; 321 | top: 52px; 322 | width: 19px; 323 | transform: rotate(275deg); 324 | } 325 | #bigBigWolf .hat .patch .line7 { 326 | left: 70px; 327 | top: 50px; 328 | width: 15px; 329 | transform: rotate(290deg); 330 | transform: rotate(260deg); 331 | } 332 | #bigBigWolf .hat .patch .line8 { 333 | left: 85px; 334 | top: 51px; 335 | width: 19px; 336 | transform: rotate(250deg); 337 | } 338 | #bigBigWolf .hat .patch .line9 { 339 | left: 102px; 340 | top: 45px; 341 | width: 13px; 342 | transform: rotate(230deg); 343 | } 344 | #bigBigWolf .hat .patch .line10 { 345 | left: 106px; 346 | top: 34px; 347 | width: 12px; 348 | transform: rotate(220deg); 349 | } 350 | #bigBigWolf .eye { 351 | left: 213px; 352 | top: 221px; 353 | width: 287px; 354 | height: 185px; 355 | z-index: 20; 356 | } 357 | #bigBigWolf .eye .left, #bigBigWolf .eye .right { 358 | width: 121px; 359 | height: 121px; 360 | border: 3px solid #181818; 361 | background: #DBDBDB; 362 | z-index: 0; 363 | border-radius: 61px; 364 | } 365 | #bigBigWolf .eye .left { 366 | left: 0; 367 | bottom: 0; 368 | } 369 | #bigBigWolf .eye .right { 370 | right: 0; 371 | top: 0; 372 | } 373 | #bigBigWolf .eye .inner { 374 | left: 2px; 375 | top: 2px; 376 | width: 114px; 377 | height: 114px; 378 | background: #FFF; 379 | z-index: 10; 380 | border-radius: 57px; 381 | } 382 | #bigBigWolf .eye .pupil { 383 | left: 8px; 384 | top: 26px; 385 | width: 54px; 386 | height: 54px; 387 | border: 2px solid #181818; 388 | z-index: 20; 389 | border-radius: 27px; 390 | background: #404972; 391 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#181818), to(#455289)); 392 | background: linear-gradient(to bottom, #181818, #455289); 393 | animation: pupil 2s linear; 394 | animation-iteration-count: infinite; 395 | } 396 | @keyframes pupil { 397 | 0% { 398 | left: 8px; 399 | top: 26px; 400 | } 401 | 25% { 402 | left: 29px; 403 | top: 33px; 404 | } 405 | 50% { 406 | left: 50px; 407 | top: 40px; 408 | } 409 | 75% { 410 | left: 29px; 411 | top: 33px; 412 | } 413 | 100% { 414 | left: 8px; 415 | top: 26px; 416 | } 417 | } 418 | #bigBigWolf .eye .pupil .inner { 419 | left: 9px; 420 | top: 9px; 421 | width: 36px; 422 | height: 36px; 423 | background: #1A1A1A; 424 | z-index: 30; 425 | border-radius: 18px; 426 | } 427 | #bigBigWolf .eye .light1 { 428 | left: 21px; 429 | bottom: 3px; 430 | width: 16px; 431 | height: 16px; 432 | background: #FFF; 433 | z-index: 40; 434 | border-radius: 15px 7px 10px 10px; 435 | transform: rotate(320deg); 436 | } 437 | #bigBigWolf .eye .light2 { 438 | left: 7px; 439 | bottom: 11px; 440 | width: 14px; 441 | height: 6px; 442 | background: #FFF; 443 | z-index: 40; 444 | border-radius: 500px 300px 100px 100px/300px 200px 100px 100px; 445 | transform: rotate(285deg); 446 | } 447 | #bigBigWolf .eye .light3 { 448 | right: 2px; 449 | top: 4px; 450 | width: 30px; 451 | height: 13px; 452 | background: #FFF; 453 | z-index: 40; 454 | border-radius: 40px 100px 15px 15px/40px 50px 15px 15px; 455 | transform: rotate(20deg); 456 | } 457 | #bigBigWolf .eyebrow { 458 | left: 187px; 459 | top: 173px; 460 | width: 280px; 461 | height: 130px; 462 | z-index: 70; 463 | } 464 | #bigBigWolf .eyebrow .left { 465 | left: 0; 466 | top: 48px; 467 | width: 110px; 468 | height: 40px; 469 | background: #181818; 470 | z-index: 0; 471 | border-radius: 400px 400px 0 0/200px 200px 0 0; 472 | transform: rotate(330deg); 473 | } 474 | #bigBigWolf .eyebrow .left .inner { 475 | left: 0; 476 | top: 20px; 477 | width: 120px; 478 | height: 30px; 479 | background: #666B6F; 480 | z-index: 0; 481 | border-radius: 400px 400px 0 0/200px 200px 0 0; 482 | } 483 | #bigBigWolf .eyebrow .left .eyebrow1, #bigBigWolf .eyebrow .left .eyebrow2, #bigBigWolf .eyebrow .right .eyebrow1 { 484 | left: -22px; 485 | top: 36px; 486 | width: 22px; 487 | height: 2px; 488 | font-size: 0; 489 | background: #181818; 490 | z-index: 10px; 491 | transform: rotate(86deg); 492 | } 493 | #bigBigWolf .eyebrow .left .eyebrow2 { 494 | left: -15px; 495 | top: 32px; 496 | width: 20px; 497 | } 498 | #bigBigWolf .eyebrow .right .eyebrow1 { 499 | left: 93px; 500 | top: 24px; 501 | width: 20px; 502 | } 503 | #bigBigWolf .eyebrow .right { 504 | right: 17px; 505 | top: -3px; 506 | width: 100px; 507 | height: 40px; 508 | background: #181818; 509 | z-index: 0; 510 | border-radius: 400px 400px 0 0/200px 200px 0 0; 511 | transform: rotate(355deg); 512 | } 513 | #bigBigWolf .eyebrow .right .inner { 514 | right: -7px; 515 | top: 20px; 516 | width: 120px; 517 | height: 30px; 518 | background: #666B6F; 519 | z-index: 0; 520 | border-radius: 400px 400px 0 0/200px 200px 0 0; 521 | } 522 | #bigBigWolf .nose { 523 | right: 158px; 524 | bottom: 203px; 525 | width: 74px; 526 | height: 74px; 527 | z-index: 30; 528 | background: #4B4B4B; 529 | border-radius: 160px 40px 160px 40px; 530 | transform: rotate(25deg); 531 | } 532 | #bigBigWolf .nose .outer { 533 | right: 1px; 534 | top: -2px; 535 | width: 72px; 536 | height: 72px; 537 | z-index: 0; 538 | background: #181818; 539 | border-radius: 150px 40px 150px 40px; 540 | transform: rotate(2deg); 541 | } 542 | #bigBigWolf .nose .inner { 543 | right: 18px; 544 | top: 13px; 545 | width: 24px; 546 | height: 24px; 547 | z-index: 10; 548 | background: #4F4F4F; 549 | border-radius: 150px 50px 150px 50px; 550 | transform: rotate(0deg); 551 | } 552 | #bigBigWolf .nose .light { 553 | right: 16px; 554 | top: 3px; 555 | width: 20px; 556 | height: 20px; 557 | z-index: 20; 558 | background: #FFF; 559 | border-radius: 150px 70px 150px 70px; 560 | transform: rotate(3deg); 561 | } 562 | #bigBigWolf .mouth { 563 | right: 62px; 564 | bottom: 108px; 565 | width: 290px; 566 | height: 60px; 567 | border: 3px solid #181818; 568 | background: #FFF; 569 | z-index: 50; 570 | border-radius: 700px 700px 2800px 2800px/0 0 1200px 1200px; 571 | transform: rotate(341deg); 572 | } 573 | #bigBigWolf .mouth .inner { 574 | right: -3px; 575 | bottom: 41px; 576 | width: 289px; 577 | height: 20px; 578 | border: 3px solid #181818; 579 | border-top: 0; 580 | background: #666B6F; 581 | z-index: 0; 582 | border-radius: 700px 700px 7800px 7800px/0 0 1500px 1500px; 583 | } 584 | #bigBigWolf .tooth1, #bigBigWolf .tooth2, #bigBigWolf .tooth3, #bigBigWolf .tooth4, #bigBigWolf .tooth5, #bigBigWolf .tooth6, #bigBigWolf .tooth7, #bigBigWolf .tooth8, #bigBigWolf .tooth9, #bigBigWolf .tooth10, #bigBigWolf .tooth11, #bigBigWolf .tooth12, #bigBigWolf .tooth13, #bigBigWolf .tooth14, #bigBigWolf .tooth15, #bigBigWolf .tooth16, #bigBigWolf .tooth17, #bigBigWolf .tooth18, #bigBigWolf .tooth19, #bigBigWolf .tooth20, #bigBigWolf .tooth121, #bigBigWolf .tooth122, #bigBigWolf .tooth123 { 585 | left: -1px; 586 | top: 18px; 587 | width: 20px; 588 | height: 2px; 589 | font-size: 0; 590 | background: #181818; 591 | z-index: 60px; 592 | transform: rotate(26deg); 593 | } 594 | #bigBigWolf .tooth2 { 595 | left: 13px; 596 | top: 12px; 597 | width: 22px; 598 | transform: rotate(125deg); 599 | transform: rotate(122deg); 600 | transform: rotate(125deg); 601 | } 602 | #bigBigWolf .tooth3 { 603 | left: 18px; 604 | top: 17px; 605 | width: 30px; 606 | transform: rotate(76deg); 607 | } 608 | #bigBigWolf .tooth4 { 609 | left: 36px; 610 | top: 26px; 611 | width: 9px; 612 | transform: rotate(340deg); 613 | } 614 | #bigBigWolf .tooth5 { 615 | left: 40px; 616 | top: 30px; 617 | width: 12px; 618 | transform: rotate(70deg); 619 | } 620 | #bigBigWolf .tooth6 { 621 | left: 46px; 622 | top: 35px; 623 | width: 14px; 624 | transform: rotate(12deg); 625 | } 626 | #bigBigWolf .tooth7 { 627 | left: 58px; 628 | top: 37px; 629 | width: 24px; 630 | transform: rotate(12deg); 631 | } 632 | #bigBigWolf .tooth8, #bigBigWolf .tooth10 { 633 | left: 21px; 634 | top: 16px; 635 | width: 20px; 636 | height: 1px; 637 | background: #FFF; 638 | transform: rotate(76deg); 639 | } 640 | #bigBigWolf .tooth9, #bigBigWolf .tooth11, #bigBigWolf .tooth12 { 641 | left: 14px; 642 | top: 15px; 643 | width: 20px; 644 | height: 1px; 645 | background: #FFF; 646 | transform: rotate(122deg); 647 | } 648 | #bigBigWolf .tooth10 { 649 | left: 21px; 650 | top: 18px; 651 | height: 2px; 652 | } 653 | #bigBigWolf .tooth11 { 654 | left: 14px; 655 | top: 20px; 656 | height: 3px; 657 | } 658 | #bigBigWolf .tooth12 { 659 | left: 13px; 660 | top: 18px; 661 | height: 2px; 662 | } 663 | #bigBigWolf .tooth13 { 664 | left: 270px; 665 | top: 17px; 666 | width: 18px; 667 | transform: rotate(335deg); 668 | } 669 | #bigBigWolf .tooth14 { 670 | left: 254px; 671 | top: 11px; 672 | width: 22px; 673 | transform: rotate(55deg); 674 | } 675 | #bigBigWolf .tooth15 { 676 | left: 242px; 677 | top: 16px; 678 | width: 29px; 679 | transform: rotate(100deg); 680 | } 681 | #bigBigWolf .tooth16 { 682 | left: 243px; 683 | top: 25px; 684 | width: 13px; 685 | transform: rotate(20deg); 686 | } 687 | #bigBigWolf .tooth17 { 688 | left: 237px; 689 | top: 29px; 690 | width: 11px; 691 | transform: rotate(100deg); 692 | } 693 | #bigBigWolf .tooth18 { 694 | left: 219px; 695 | top: 36px; 696 | width: 24px; 697 | transform: rotate(165deg); 698 | } 699 | #bigBigWolf .tooth19, #bigBigWolf .tooth21, #bigBigWolf .tooth23 { 700 | left: 255px; 701 | top: 15px; 702 | width: 22px; 703 | height: 1px; 704 | background: #FFF; 705 | transform: rotate(55deg); 706 | } 707 | #bigBigWolf .tooth20, #bigBigWolf .tooth22 { 708 | left: 247px; 709 | top: 17px; 710 | width: 22px; 711 | height: 1px; 712 | background: #FFF; 713 | transform: rotate(100deg); 714 | } 715 | #bigBigWolf .tooth21 { 716 | left: 255px; 717 | top: 16px; 718 | height: 2px; 719 | } 720 | #bigBigWolf .tooth22 { 721 | left: 248px; 722 | top: 19px; 723 | height: 4px; 724 | } 725 | #bigBigWolf .tooth23 { 726 | left: 255px; 727 | top: 19px; 728 | height: 2px; 729 | } 730 | #bigBigWolf .beard { 731 | left: 190px; 732 | bottom: 50px; 733 | width: 370px; 734 | height: 200px; 735 | z-index: 80; 736 | } 737 | #bigBigWolf .beard1, #bigBigWolf .beard2, #bigBigWolf .beard3, #bigBigWolf .beard4, #bigBigWolf .beard5, #bigBigWolf .beard6, #bigBigWolf .beard7, #bigBigWolf .beard8, #bigBigWolf .beard9, #bigBigWolf .beard10, #bigBigWolf .beard11, #bigBigWolf .beard12 { 738 | right: -1px; 739 | top: 32px; 740 | width: 40px; 741 | height: 2px; 742 | font-size: 0; 743 | background: #181818; 744 | z-index: 0; 745 | transform: rotate(3deg); 746 | } 747 | #bigBigWolf .beard2 { 748 | right: 23px; 749 | top: 68px; 750 | width: 24px; 751 | transform: rotate(355deg); 752 | } 753 | #bigBigWolf .beard3 { 754 | right: 34px; 755 | top: 90px; 756 | width: 22px; 757 | transform: rotate(30deg); 758 | } 759 | #bigBigWolf .beard4 { 760 | right: 54px; 761 | top: 120px; 762 | width: 28px; 763 | transform: rotate(50deg); 764 | } 765 | #bigBigWolf .beard5 { 766 | right: 89px; 767 | top: 132px; 768 | width: 22px; 769 | transform: rotate(60deg); 770 | } 771 | #bigBigWolf .beard6 { 772 | right: 115px; 773 | top: 148px; 774 | width: 16px; 775 | transform: rotate(70deg); 776 | } 777 | #bigBigWolf .beard7 { 778 | right: 145px; 779 | top: 162px; 780 | width: 24px; 781 | transform: rotate(90deg); 782 | } 783 | #bigBigWolf .beard8 { 784 | right: 175px; 785 | top: 166px; 786 | width: 16px; 787 | transform: rotate(110deg); 788 | } 789 | #bigBigWolf .beard9 { 790 | right: 210px; 791 | top: 173px; 792 | width: 22px; 793 | transform: rotate(60deg); 794 | } 795 | #bigBigWolf .beard10 { 796 | right: 245px; 797 | top: 173px; 798 | width: 14px; 799 | transform: rotate(130deg); 800 | } 801 | #bigBigWolf .beard11 { 802 | right: 275px; 803 | top: 168px; 804 | width: 20px; 805 | transform: rotate(120deg); 806 | } 807 | #bigBigWolf .beard12 { 808 | right: 300px; 809 | top: 156px; 810 | width: 16px; 811 | transform: rotate(140deg); 812 | } 813 | #bigBigWolf .scar, #bigBigWolf .scar1, #bigBigWolf .scar2, #bigBigWolf .scar3, #bigBigWolf .scar4, #bigBigWolf .scar5 { 814 | left: 142px; 815 | bottom: 154px; 816 | width: 120px; 817 | height: 2px; 818 | font-size: 0; 819 | background: #181818; 820 | z-index: 60px; 821 | transform: rotate(43deg); 822 | } 823 | #bigBigWolf .scar1 { 824 | left: -2px; 825 | top: -5px; 826 | width: 25px; 827 | transform: rotate(90deg); 828 | } 829 | #bigBigWolf .scar2 { 830 | left: 20px; 831 | top: 2px; 832 | width: 29px; 833 | transform: rotate(80deg); 834 | } 835 | #bigBigWolf .scar3 { 836 | left: 50px; 837 | top: -2px; 838 | width: 29px; 839 | transform: rotate(90deg); 840 | } 841 | #bigBigWolf .scar4 { 842 | left: 74px; 843 | top: -4px; 844 | width: 22px; 845 | transform: rotate(92deg); 846 | } 847 | #bigBigWolf .scar5 { 848 | left: 95px; 849 | top: -2px; 850 | width: 25px; 851 | transform: rotate(90deg); 852 | } -------------------------------------------------------------------------------- /tests/wolf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 浏览器CSS3测试-灰太狼版-浏览器之家 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 | 145 | --------------------------------------------------------------------------------