pdf.js/external/builder/fixtures
Jonas Jenwald d1f13a6af3 Use the regular preprocess-function for the CSS files as well
An old shortcoming of the `preprocessCSS`-function is its complete lack of support for our "normal" defines, which makes it very difficult to have build-specific CSS rules. Recently we've started using specially crafted comments to remove CSS rules from the MOZCENTRAL build, but (ab)using the `preprocessCSS`-function in this way really doesn't feel great.
However, it turns out to be surprisingly simple to instead use the "regular" `preprocess`-function for the CSS files as well. The only special-handling that's still necessary is the helper-function for dealing with CSS-imports, but apart from that everything seems to just work.

One reason, as far as I can tell, for having a separate `preprocessCSS`-function was likely that we originally used *lots* of vendor-prefixed CSS rules in our CSS files. With improvements over the years, especially thanks to Autoprefixer and PostCSS, we've been able to remove *almost* all non-standard CSS rules and the need for special-casing the CSS parsing has mostly vanished.

*Please note:* As part of testing this patch I've diffed the output of `gulp generic`, `gulp mozcentral`, and `gulp chromium` against the `master`-branch to check that there was no obvious breakage.
2022-05-07 22:45:52 +02:00
..
confusing-comment-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
confusing-comment.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
elif-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
elif.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
else-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
else.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
error-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
error-false-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
error-false.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
error.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
expand-expected.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
expand.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-empty-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-empty.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-elif-false-else-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-elif-false-else.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-elif-true-else-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-elif-true-else.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-else-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-false-else.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-nested-expected.css Use the regular preprocess-function for the CSS files as well 2022-05-07 22:45:52 +02:00
if-nested-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-nested.css Use the regular preprocess-function for the CSS files as well 2022-05-07 22:45:52 +02:00
if-nested.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-true-elif-false-else-expected.js Enables debugger only when needed. 2016-05-09 18:18:43 -05:00
if-true-elif-false-else.js Enables debugger only when needed. 2016-05-09 18:18:43 -05:00
if-true-else-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-true-else.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-unclosed-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
if-unclosed.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
include-expected.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
include-non-existent-expected.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
include-non-existent.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
include.html Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
js-comment-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
js-comment.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
undefined-define-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
undefined-define.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
unsupported-ifdef-expected.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00
unsupported-ifdef.js Fix preprocessor: nesting, error & tests 2015-07-19 14:47:28 +02:00