From a2977c8d2a66ea237e8bcb4a8e2c8fa463ac05cd Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 24 Jan 2009 20:13:07 +0000 Subject: Test cases for margin shorthand property. svn path=/trunk/libcss/; revision=6253 --- test/data/parse2/shorthands.dat | 61 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 test/data/parse2/shorthands.dat (limited to 'test') diff --git a/test/data/parse2/shorthands.dat b/test/data/parse2/shorthands.dat new file mode 100644 index 0000000..0705f13 --- /dev/null +++ b/test/data/parse2/shorthands.dat @@ -0,0 +1,61 @@ +#data +* { margin: 0 0 0 0; } +#errors +#expected +| * +| margin-top: 0 +| margin-right: 0 +| margin-bottom: 0 +| margin-left: 0 +#reset + +#data +* { margin: 2em; } +#errors +#expected +| * +| margin-top: 2em +| margin-right: 2em +| margin-bottom: 2em +| margin-left: 2em +#reset + +#data +* { margin: 2em auto; } +#errors +#expected +| * +| margin-top: 2em +| margin-right: auto +| margin-bottom: 2em +| margin-left: auto +#reset + +#data +* { margin: 10% 5px -4em -50%; } +#errors +#expected +| * +| margin-top: 10% +| margin-right: 5px +| margin-bottom: -4em +| margin-left: -50% +#reset + +#data +* { margin: 10% 5px -4em; } +#errors +#expected +| * +| margin-top: 10% +| margin-right: 5px +| margin-bottom: -4em +| margin-left: 5px +#reset + +#data +* { margin: 10% 5px "Hello!" -4em; } +#errors +#expected +| * +#reset \ No newline at end of file -- cgit v1.2.3