From da22dbf81c7310a5c6195c26922d07652c88392f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 1 Aug 2008 01:15:31 +0000 Subject: Fix handling of empty strings. Parse errors in blocks are ignored -- it'll be up to the client to deal with this. Fix processing of malformed decl-list entries (e.g. foo: bar; !important;) Fix test driver to calculate remaining length correctly. svn path=/trunk/libcss/; revision=4849 --- test/data/css/malformed.css | 1 + test/data/css/simple.css | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'test/data/css') diff --git a/test/data/css/malformed.css b/test/data/css/malformed.css index cfcbb23..4ff885b 100644 --- a/test/data/css/malformed.css +++ b/test/data/css/malformed.css @@ -5,6 +5,7 @@ p { color:green; color: } /* malformed declaration missing value */ p { color:red; color:; color:green } /* same with expected recovery */ p { color:green; color{;color:maroon} } /* unexpected tokens { } */ p { color:red; color{;color:maroon}; color:green } /* same with recovery */ +p { color:red; !important; color:green } @blah { moose } diff --git a/test/data/css/simple.css b/test/data/css/simple.css index bfd33b1..aeba2f5 100644 --- a/test/data/css/simple.css +++ b/test/data/css/simple.css @@ -45,3 +45,7 @@ body { font-family: "foo \ */ body { font-family: "unterminated string foo } + +blah { baz: bat; foo: bar !important; } + +foo { bar: ""; } -- cgit v1.2.3