summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-11-03 08:56:43 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-11-03 08:56:43 +0000
commit3c0c6b6def402f0c0b654974e193c8c4bf55047f (patch)
tree4dd033ef20d2480380a85e1f156152fbc49ebba7 /src/parse
parent0275dec0dff54eefd03d9302af4562c4024fb993 (diff)
downloadlibcss-3c0c6b6def402f0c0b654974e193c8c4bf55047f.tar.gz
libcss-3c0c6b6def402f0c0b654974e193c8c4bf55047f.tar.bz2
properties: position: Add support for 'sticky' value
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/properties/properties.gen2
-rw-r--r--src/parse/propstrings.c1
-rw-r--r--src/parse/propstrings.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/parse/properties/properties.gen b/src/parse/properties/properties.gen
index a001370..b0e797c 100644
--- a/src/parse/properties/properties.gen
+++ b/src/parse/properties/properties.gen
@@ -148,7 +148,7 @@ pitch:CSS_PROP_PITCH IDENT:( INHERIT: INITIAL: REVERT: UNSET: X_LOW:0,PITCH_X_LO
pitch_range:CSS_PROP_PITCH_RANGE IDENT:( INHERIT: INITIAL: REVERT: UNSET: IDENT:) NUMBER:( false:PITCH_RANGE_SET RANGE:num<0||num>F_100 NUMBER:)
-position:CSS_PROP_POSITION IDENT:( INHERIT: INITIAL: REVERT: UNSET: LIBCSS_STATIC:0,POSITION_STATIC RELATIVE:0,POSITION_RELATIVE ABSOLUTE:0,POSITION_ABSOLUTE FIXED:0,POSITION_FIXED IDENT:)
+position:CSS_PROP_POSITION IDENT:( INHERIT: INITIAL: REVERT: UNSET: LIBCSS_STATIC:0,POSITION_STATIC RELATIVE:0,POSITION_RELATIVE ABSOLUTE:0,POSITION_ABSOLUTE FIXED:0,POSITION_FIXED STICKY:0,POSITION_STICKY IDENT:)
richness:CSS_PROP_RICHNESS IDENT:( INHERIT: INITIAL: REVERT: UNSET: IDENT:) NUMBER:( false:RICHNESS_SET RANGE:num<0||num>F_100 NUMBER:)
diff --git a/src/parse/propstrings.c b/src/parse/propstrings.c
index 2cac65f..786a3b7 100644
--- a/src/parse/propstrings.c
+++ b/src/parse/propstrings.c
@@ -488,6 +488,7 @@ const stringmap_entry stringmap[LAST_KNOWN] = {
SMAP("infinite"),
SMAP("grid"),
SMAP("inline-grid"),
+ SMAP("sticky"),
SMAP("aliceblue"),
SMAP("antiquewhite"),
diff --git a/src/parse/propstrings.h b/src/parse/propstrings.h
index 6c84f71..6d6dd49 100644
--- a/src/parse/propstrings.h
+++ b/src/parse/propstrings.h
@@ -109,7 +109,7 @@ enum {
VERTICAL_LR, CONTENT_BOX, BORDER_BOX, STRETCH, INLINE_FLEX, FLEX_START,
FLEX_END, SPACE_BETWEEN, SPACE_AROUND, SPACE_EVENLY, ROW, ROW_REVERSE,
COLUMN_REVERSE, WRAP_STRING, WRAP_REVERSE, AND, OR, ONLY, INFINITE,
- GRID, INLINE_GRID,
+ GRID, INLINE_GRID, STICKY,
/* Named colours */
FIRST_COLOUR,