From 46e3a946d7b2f7d68f3753a37c6f68a732a36f01 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 12 Jan 2010 20:56:08 +0000 Subject: Origin and media are not properties of the stylesheet. They are properties of the context in which the stylesheet is used. Therefore, for top-level sheets, this information must be provided at selection time. For child sheets, the origin is inherited from their parent and the applicable media types are specified on the linking mechanism. svn path=/trunk/libcss/; revision=9802 --- test/css21.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/css21.c') diff --git a/test/css21.c b/test/css21.c index f288720..5e6c71a 100644 --- a/test/css21.c +++ b/test/css21.c @@ -58,8 +58,7 @@ int main(int argc, char **argv) for (count = 0; count < ITERATIONS; count++) { assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[2], - NULL, CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, - false, ctx, myrealloc, NULL, + NULL, false, false, ctx, myrealloc, NULL, resolve_url, NULL, &sheet) == CSS_OK); fp = fopen(argv[2], "rb"); @@ -115,9 +114,8 @@ int main(int argc, char **argv) buf[lwc_string_length(url)] = '\0'; assert(css_stylesheet_create(CSS_LEVEL_21, - "UTF-8", buf, NULL, CSS_ORIGIN_AUTHOR, - media, false, false, ctx, myrealloc, - NULL, resolve_url, NULL, + "UTF-8", buf, NULL, false, false, ctx, + myrealloc, NULL, resolve_url, NULL, &import) == CSS_OK); assert(css_stylesheet_data_done(import) == -- cgit v1.2.3