From e1ff6404fa3391c2b0e21703fb990962c41c13e2 Mon Sep 17 00:00:00 2001 From: Cerdic Date: Sun, 14 Nov 2010 17:27:17 +0100 Subject: [PATCH] Test for https://github.com/Cerdic/CSSTidy/issues/issue/2 that FAIL --- .../csst/properties/preserve-merging.csst | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 testing/unit-tests/csst/properties/preserve-merging.csst diff --git a/testing/unit-tests/csst/properties/preserve-merging.csst b/testing/unit-tests/csst/properties/preserve-merging.csst new file mode 100644 index 0000000..416834f --- /dev/null +++ b/testing/unit-tests/csst/properties/preserve-merging.csst @@ -0,0 +1,28 @@ +--TEST-- +Preserve merging of properties issue/2 +--CSS-- +div { + display:block; + display:inline-block; +} +.gradient { + background-image:-webkit-gradient(linear, left bottom, left top, color-stop(0.15, rgba(215,240,240,0.9)), color-stop(0.5, rgba(235,250,250,0))); + background-image: -moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9; +} +--EXPECT-- +array ( + 'div' => + array ( + 'display' => 'block', + 'display ' => 'inline-block', + ), + '.gradient' => + array ( + 'background-image' => '-webkit-gradient(linear, left bottom, left top, color-stop(0.15, rgba(215,240,240,0.9)), color-stop(0.5, rgba(235,250,250,0)))', + 'background-image ' => '-moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9', + ), +) +--SETTINGS-- +discard_invalid_properties=false +optimise_shorthands=0 +css_level='CSS21' \ No newline at end of file