diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-04-27 10:56:03 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-04-27 10:56:03 +0100 |
commit | ed0b3a8c9d3549fb0a66372d4bbd3566138c2a06 (patch) | |
tree | d3a8fc64ba19b5ed420b08d1dd9441a32be546b0 /src/parse/properties | |
parent | 4729f01919b7ba3f99abfea8900931616fbb8320 (diff) | |
download | libcss-ed0b3a8c9d3549fb0a66372d4bbd3566138c2a06.tar.gz libcss-ed0b3a8c9d3549fb0a66372d4bbd3566138c2a06.tar.bz2 |
Parsing: Add support for parsing the CSS3 box-sizing property.
Diffstat (limited to 'src/parse/properties')
-rw-r--r-- | src/parse/properties/properties.c | 1 | ||||
-rw-r--r-- | src/parse/properties/properties.gen | 2 | ||||
-rw-r--r-- | src/parse/properties/properties.h | 3 |
3 files changed, 6 insertions, 0 deletions
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); |