(link, css)
| 104 | |
| 105 | // Handle potential @import url(foo.css) statements in the CSS. |
| 106 | function parseCssForImports(link, css) { |
| 107 | link.imports = resolveCssImportUrls(link.url, css) |
| 108 | status.total += link.imports.length |
| 109 | result.css += css |
| 110 | |
| 111 | link.imports.forEach(function (importUrl) { |
| 112 | var importLink = createLink(importUrl, importUrl) |
| 113 | result.links.push(importLink) |
| 114 | |
| 115 | getLinkContents(importLink.url, options) |
| 116 | .then(function (css) { |
| 117 | handleCssFromLink(importLink, css) |
| 118 | }) |
| 119 | .catch(function (error) { |
| 120 | link.error = error |
| 121 | status.parsed++ |
| 122 | handleResolve() |
| 123 | }) |
| 124 | }) |
| 125 | } |
| 126 | |
| 127 | function handleBody(body) { |
| 128 | if (isCss(url)) { |
no test coverage detected
searching dependent graphs…