From 3072c414e09b6d0dd34c6987f8b5d200ff5ef4d6 Mon Sep 17 00:00:00 2001 From: Philipp Salvisberg Date: Fri, 12 Aug 2022 00:06:15 +0200 Subject: [PATCH] minimize use of new CSS features, ensure custom-properties are not used --- tools/run-in-container/genpdf.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/run-in-container/genpdf.sh b/tools/run-in-container/genpdf.sh index 1530bca5..9602c739 100755 --- a/tools/run-in-container/genpdf.sh +++ b/tools/run-in-container/genpdf.sh @@ -48,7 +48,9 @@ function fix_unsupported_css() { sed -e 's|||g' temp.html > index.html rm temp.html - OPTIONS='{"stage":false,"features":{"color-functional-notation":{"preserver":false}}}' + # see https://preset-env.cssdb.org/features/#stage-0 + # all stages should work as long as custom-properties are converted + OPTIONS='{"stage":0,"features":{"custom-properties":true}}' cp assets/stylesheets/main.1d29e8d0.min.css assets/stylesheets/main.1d29e8d0.min.ori.css csstools-cli postcss-preset-env assets/stylesheets/main.1d29e8d0.min.css --replace --plugin-options ${OPTIONS}