(segment)
| 328 | } |
| 329 | |
| 330 | function collapseCssWhitespace(segment) { |
| 331 | return segment |
| 332 | .replace(/\s+/g, " ") |
| 333 | .replace(/\s*([{}:;,>])\s*/g, "$1") |
| 334 | .replace(/;}/g, "}"); |
| 335 | } |
| 336 | |
| 337 | /** Returns the index just past the string literal that begins at `i`. */ |
| 338 | function skipCssString(css, i) { |