diff options
author | Benjamin Otte <otte@redhat.com> | 2014-05-11 03:08:40 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-11 03:23:55 +0200 |
commit | 3a72e2fb2483d4dd26eb74319613ffb505d89128 (patch) | |
tree | b02474d3cce58fe8ce72207405eb5d5b3810cb76 /gtk/gtkcssinheritvalue.c | |
parent | f2258cb05cfaf96ba146d1244f4a4e2d8bafc1e8 (diff) | |
download | gtk+-3a72e2fb2483d4dd26eb74319613ffb505d89128.tar.gz |
css: Implement "unset"
Quoting the spec:
If the cascaded value of a property is the unset keyword,
then if it is an inherited property, this is treated as
inherit, and if it is not, this is treated as initial.
Spec in question:
http://dev.w3.org/csswg/css-cascade/
Also use unset in the reset-to-defaults.css we use to reset css in
reftests.
Diffstat (limited to 'gtk/gtkcssinheritvalue.c')
-rw-r--r-- | gtk/gtkcssinheritvalue.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcssinheritvalue.c b/gtk/gtkcssinheritvalue.c index 053245cf73..bfea779d69 100644 --- a/gtk/gtkcssinheritvalue.c +++ b/gtk/gtkcssinheritvalue.c @@ -97,3 +97,9 @@ _gtk_css_inherit_value_new (void) { return _gtk_css_value_ref (&inherit); } + +GtkCssValue * +_gtk_css_inherit_value_get (void) +{ + return &inherit; +} |