"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/cssnano/src/__tests__/postcss-normalize-url.js" between
cssnano-cssnano-5.0.6.tar.gz and cssnano-cssnano-5.0.7.tar.gz

About: cssnano is a modular CSS minifier (built on top of the PostCSS ecosystem).

postcss-normalize-url.js  (cssnano-cssnano-5.0.6):postcss-normalize-url.js  (cssnano-cssnano-5.0.7)
skipping to change at line 154 skipping to change at line 154
'.has-svg:before{content:url("data:image/svg+xml;utf8,<svg xmlns="http://www .w3.org/2000/svg" width="100%" height="100%" viewBox="-0.5 0 20 15"><rect fill=" white" stroke="none" transform="rotate(45 4.0033 8.87436)" height="5" width="6.3 2304" y="6.37436" x="0.84178"></rect><rect fill="white" stroke="none" transform= "rotate(45 11.1776 7.7066)" width="5" height="16.79756" y="-0.69218" x="8.67764" ></rect></svg>")}', '.has-svg:before{content:url("data:image/svg+xml;utf8,<svg xmlns="http://www .w3.org/2000/svg" width="100%" height="100%" viewBox="-0.5 0 20 15"><rect fill=" white" stroke="none" transform="rotate(45 4.0033 8.87436)" height="5" width="6.3 2304" y="6.37436" x="0.84178"></rect><rect fill="white" stroke="none" transform= "rotate(45 11.1776 7.7066)" width="5" height="16.79756" y="-0.69218" x="8.67764" ></rect></svg>")}',
'.has-svg:before{content:url("data:image/svg+xml;utf8,<svg xmlns="http://www .w3.org/2000/svg" width="100%" height="100%" viewBox="-0.5 0 20 15"><rect fill=" #fff" stroke="none" transform="rotate(45 4.0033 8.87436)" height="5" width="6.32 304" y="6.37436" x="0.84178"></rect><rect fill="#fff" stroke="none" transform="r otate(45 11.1776 7.7066)" width="5" height="16.79756" y="-0.69218" x="8.67764">< /rect></svg>")}' '.has-svg:before{content:url("data:image/svg+xml;utf8,<svg xmlns="http://www .w3.org/2000/svg" width="100%" height="100%" viewBox="-0.5 0 20 15"><rect fill=" #fff" stroke="none" transform="rotate(45 4.0033 8.87436)" height="5" width="6.32 304" y="6.37436" x="0.84178"></rect><rect fill="#fff" stroke="none" transform="r otate(45 11.1776 7.7066)" width="5" height="16.79756" y="-0.69218" x="8.67764">< /rect></svg>")}'
) )
); );
test( test(
'should optimise @namespace urls', 'should optimise @namespace urls',
processCss( processCss(
'@namespace islands url("http://bar.yandex.ru/ui/islands");', '@namespace islands url("http://bar.yandex.ru/ui/islands");',
'@namespace islands "http://bar.yandex.ru/ui/islands";', '@namespace islands "http://bar.yandex.ru/ui/islands";',
{ discardUnused: { namespace: false } } { discardUnused: { namespace: false }, from: undefined }
) )
); );
test( test(
'should not normalize @document urls', 'should not normalize @document urls',
processCss( processCss(
'@document url(http://www.w3.org/),url-prefix(http://www.w3.org/Style/){body {font-size:2em}}', '@document url(http://www.w3.org/),url-prefix(http://www.w3.org/Style/){body {font-size:2em}}',
'@document url(http://www.w3.org/),url-prefix(http://www.w3.org/Style/){body {font-size:2em}}' '@document url(http://www.w3.org/),url-prefix(http://www.w3.org/Style/){body {font-size:2em}}'
) )
); );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)