@@ -4311,12 +4311,24 @@ mod tests {
43114311 );
43124312 minify_test(
43134313 ".foo { background-position: left 10px center }",
4314- ".foo{background-position:10px 50% }",
4314+ ".foo{background-position:10px}",
43154315 );
43164316 minify_test(
43174317 ".foo { background-position: right 10px center }",
43184318 ".foo{background-position:right 10px center}",
43194319 );
4320+ minify_test(
4321+ ".foo { background-position: center top 10px }",
4322+ ".foo{background-position:50% 10px}",
4323+ );
4324+ minify_test(
4325+ ".foo { background-position: center bottom 10px }",
4326+ ".foo{background-position:center bottom 10px}",
4327+ );
4328+ minify_test(
4329+ ".foo { background-position: center 10px }",
4330+ ".foo{background-position:50% 10px}",
4331+ );
43204332 minify_test(
43214333 ".foo { background-position: right 10px top 20px }",
43224334 ".foo{background-position:right 10px top 20px}",
@@ -4337,6 +4349,26 @@ mod tests {
43374349 ".foo { background-position: bottom right }",
43384350 ".foo{background-position:100% 100%}",
43394351 );
4352+ minify_test(
4353+ ".foo { background-position: center top }",
4354+ ".foo{background-position:top}",
4355+ );
4356+ minify_test(
4357+ ".foo { background-position: center bottom }",
4358+ ".foo{background-position:bottom}",
4359+ );
4360+ minify_test(
4361+ ".foo { background-position: left center }",
4362+ ".foo{background-position:0}",
4363+ );
4364+ minify_test(
4365+ ".foo { background-position: right center }",
4366+ ".foo{background-position:100%}",
4367+ );
4368+ minify_test(
4369+ ".foo { background-position: 20px center }",
4370+ ".foo{background-position:20px}",
4371+ );
43404372
43414373 minify_test(
43424374 ".foo { background: url('img-sprite.png') no-repeat bottom right }",
0 commit comments