diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-01-12 20:56:08 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-01-12 20:56:08 +0000 |
commit | 46e3a946d7b2f7d68f3753a37c6f68a732a36f01 (patch) | |
tree | 7fb3b470499776274246cb261b13785ecd254e6e /test/parse2-auto.c | |
parent | 41d14d090b1ce6b34865c12b3d1c980bd0fa36e8 (diff) | |
download | libcss-46e3a946d7b2f7d68f3753a37c6f68a732a36f01.tar.gz libcss-46e3a946d7b2f7d68f3753a37c6f68a732a36f01.tar.bz2 |
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
Diffstat (limited to 'test/parse2-auto.c')
-rw-r--r-- | test/parse2-auto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 57b1688..2a89ef4 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -188,8 +188,8 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen) lwc_context_ref(ctx); assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL, - CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, false, ctx, - myrealloc, NULL, resolve_url, NULL, &sheet) == CSS_OK); + false, false, ctx, myrealloc, NULL, resolve_url, NULL, + &sheet) == CSS_OK); error = css_stylesheet_append_data(sheet, data, len); if (error != CSS_OK && error != CSS_NEEDDATA) { |