summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyimpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r--gtk/gtkcssstylepropertyimpl.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index a0311b37b0..25c66f9b77 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -737,6 +737,19 @@ parse_font_variant_numeric (GtkCssStyleProperty *property,
}
static GtkCssValue *
+parse_font_variant_alternatives (GtkCssStyleProperty *property,
+ GtkCssParser *parser)
+{
+ GtkCssValue *value = NULL;
+
+ value = _gtk_css_ident_value_try (parser, "normal", "historical-forms", NULL);
+ if (value == NULL)
+ _gtk_css_parser_error (parser, "Not a valid value");
+
+ return value;
+}
+
+static GtkCssValue *
box_shadow_value_parse (GtkCssStyleProperty *property,
GtkCssParser *parser)
{
@@ -1261,6 +1274,14 @@ _gtk_css_style_property_init_properties (void)
parse_font_variant_numeric,
NULL,
_gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
+ gtk_css_style_property_register ("font-variant-alternatives",
+ GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES,
+ G_TYPE_NONE,
+ 0,
+ GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_TEXT_ATTRS,
+ parse_font_variant_alternatives,
+ NULL,
+ _gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
gtk_css_style_property_register ("text-shadow",
GTK_CSS_PROPERTY_TEXT_SHADOW,
G_TYPE_NONE,