summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKrzysztof Jurewicz <krzysztof.jurewicz@gmail.com>2017-11-17 15:56:47 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-11-17 15:56:47 +0100
commitc58641a1700a928dca9e94e7426904f315649c0a (patch)
treead392b2d8ffbf458829f3db97105ecb781e7a4c8 /tests
parent7ee4e6134cc447c8b053129e7557d9883c7e8e01 (diff)
downloadhakyll-c58641a1700a928dca9e94e7426904f315649c0a.tar.gz
Fix compression of calc() in CSS
According to Mozilla Developer Network, “The + and - operators must always be surrounded by whitespace.”.
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Web/CompressCss/Tests.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/CompressCss/Tests.hs b/tests/Hakyll/Web/CompressCss/Tests.hs
index 7420e4c..bf51ee2 100644
--- a/tests/Hakyll/Web/CompressCss/Tests.hs
+++ b/tests/Hakyll/Web/CompressCss/Tests.hs
@@ -42,6 +42,8 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
, "a>b" @=? compressCss "a > b"
, "a+b" @=? compressCss "a + b"
, "a!b" @=? compressCss "a ! b"
+ -- compress calc()
+ , "calc(1px + 100%/(5 + 3) - (3px + 2px)*5)" @=? compressCss "calc( 1px + 100% / ( 5 + 3) - calc( 3px + 2px ) * 5 )"
-- compress whitespace even after this curly brace
, "}" @=? compressCss "; } "
-- but do not compress separators inside of constants