mirror of
https://github.com/danog/inline-critical.git
synced 2024-11-30 04:29:07 +01:00
Merge branch 'master' into greenkeeper-pin
This commit is contained in:
commit
f31df8ba5c
@ -18,6 +18,8 @@
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"inline",
|
||||
"loadcss",
|
||||
"critical-path"
|
||||
],
|
||||
"author": "Ben Zörb <ben@sommerlaune.com>",
|
||||
@ -28,7 +30,7 @@
|
||||
"dependencies": {
|
||||
"cave": "2.0.0",
|
||||
"cheerio": "0.19.0",
|
||||
"clean-css": "3.4.3",
|
||||
"clean-css": "3.4.5",
|
||||
"css": "2.2.1",
|
||||
"dom-serializer": "0.1.0",
|
||||
"fg-loadcss": "0.1.8",
|
||||
|
7
test/fixtures/entities2.html
vendored
7
test/fixtures/entities2.html
vendored
@ -8,7 +8,14 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 563 87.9" enable-background="new 0 0 563 87.9" xml:space="preserve" width="167px" height="26px" fill="#fff">
|
||||
<polygon />
|
||||
<polygon />
|
||||
<polygon fill="#DD7B27" points="55.92,7 91.96,61.76 20.24,61.76 "/>
|
||||
<polygon />
|
||||
<g id="layer1" transform="translate(-192.905,-516.02064)">
|
||||
<path
|
||||
style="fill:#000000"
|
||||
d="M 197.67968,534.31563 C 197.40468,534.31208 196.21788,532.53719 195.04234,530.37143 L 192.905,526.43368 L 193.45901,525.87968 C 193.76371,525.57497 194.58269,525.32567 195.27896,525.32567 L 196.5449,525.32567 L 197.18129,527.33076 L 197.81768,529.33584 L 202.88215,523.79451 C 205.66761,520.74678 208.88522,517.75085 210.03239,517.13691 L 212.11815,516.02064 L 207.90871,520.80282 C 205.59351,523.43302 202.45735,527.55085 200.93947,529.95355 C 199.42159,532.35625 197.95468,534.31919 197.67968,534.31563 z "
|
||||
id="path2223" />
|
||||
</g>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -124,10 +124,9 @@ describe('Module: inline-critical', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
it.skip('should keep self closing svg elements', function(done) {
|
||||
it('should keep self closing svg elements', function(done) {
|
||||
var html = read('test/fixtures/entities2.html');
|
||||
var out = inlineCritical(html, '');
|
||||
|
||||
expect(strip(out.toString('utf-8'))).to.be.equal(strip(html));
|
||||
done();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user