From ed0b3a8c9d3549fb0a66372d4bbd3566138c2a06 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 27 Apr 2017 10:56:03 +0100 Subject: Parsing: Add support for parsing the CSS3 box-sizing property. --- src/parse/properties/properties.c | 1 + src/parse/properties/properties.gen | 2 ++ src/parse/properties/properties.h | 3 +++ 3 files changed, 6 insertions(+) (limited to 'src/parse/properties') diff --git a/src/parse/properties/properties.c b/src/parse/properties/properties.c index 49933cd..f32e374 100644 --- a/src/parse/properties/properties.c +++ b/src/parse/properties/properties.c @@ -42,6 +42,7 @@ const css_prop_handler property_handlers[LAST_PROP + 1 - FIRST_PROP] = css__parse_border_top_width, css__parse_border_width, css__parse_bottom, + css__parse_box_sizing, css__parse_break_after, css__parse_break_before, css__parse_break_inside, diff --git a/src/parse/properties/properties.gen b/src/parse/properties/properties.gen index 4417cb6..60d5536 100644 --- a/src/parse/properties/properties.gen +++ b/src/parse/properties/properties.gen @@ -215,3 +215,5 @@ column_span:CSS_PROP_COLUMN_SPAN IDENT:( INHERIT: NONE:0,COLUMN_SPAN_NONE ALL:0, column_width:CSS_PROP_COLUMN_WIDTH IDENT:( INHERIT: AUTO:0,COLUMN_WIDTH_AUTO IDENT:) LENGTH_UNIT:( UNIT_PX:COLUMN_WIDTH_SET DISALLOW:unit&UNIT_ANGLE||unit&UNIT_TIME||unit&UNIT_FREQ||unit&UNIT_PCT LENGTH_UNIT:) writing_mode:CSS_PROP_WRITING_MODE IDENT:( INHERIT: HORIZONTAL_TB:0,WRITING_MODE_HORIZONTAL_TB VERTICAL_RL:0,WRITING_MODE_VERTICAL_RL VERTICAL_LR:0,WRITING_MODE_VERTICAL_LR IDENT:) + +box_sizing:CSS_PROP_BOX_SIZING IDENT:( INHERIT: CONTENT_BOX:0,BOX_SIZING_CONTENT_BOX BORDER_BOX:0,BOX_SIZING_BORDER_BOX IDENT:) diff --git a/src/parse/properties/properties.h b/src/parse/properties/properties.h index cf80761..e7b2bf7 100644 --- a/src/parse/properties/properties.h +++ b/src/parse/properties/properties.h @@ -112,6 +112,9 @@ css_error css__parse_border_width(css_language *c, css_error css__parse_bottom(css_language *c, const parserutils_vector *vector, int *ctx, css_style *result); +css_error css__parse_box_sizing(css_language *c, + const parserutils_vector *vector, int *ctx, + css_style *result); css_error css__parse_break_after(css_language *c, const parserutils_vector *vector, int *ctx, css_style *result); -- cgit v1.2.3