summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2023-12-15 14:59:25 +0000
committerVincent Sanders <vince@kyllikki.org>2023-12-15 14:59:25 +0000
commitb2053790d57fb4be9aa712acf163b9d5a8e72fa9 (patch)
treec893509b137a9455a11f7eb455b12fe5d0f46b49
parent71db2ee70170a209bbe5aab5c8b9c0e35757f121 (diff)
downloadnetsurf-vince/gridlayout.tar.gz
netsurf-vince/gridlayout.tar.bz2
Initial adding of grid boxvince/gridlayout
-rw-r--r--content/handlers/html/box.h2
-rw-r--r--content/handlers/html/box_construct.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h
index df2b99d87..90a252129 100644
--- a/content/handlers/html/box.h
+++ b/content/handlers/html/box.h
@@ -69,6 +69,8 @@ typedef enum {
BOX_NONE,
BOX_FLEX,
BOX_INLINE_FLEX,
+ BOX_GRID,
+ BOX_INLINE_GRID,
} box_type;
diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c
index 8519c2b1d..11148485a 100644
--- a/content/handlers/html/box_construct.c
+++ b/content/handlers/html/box_construct.c
@@ -108,8 +108,8 @@ static const box_type box_map[] = {
BOX_NONE, /* CSS_DISPLAY_NONE */
BOX_FLEX, /* CSS_DISPLAY_FLEX */
BOX_INLINE_FLEX, /* CSS_DISPLAY_INLINE_FLEX */
- BOX_BLOCK, /* CSS_DISPLAY_GRID */
- BOX_INLINE_BLOCK, /* CSS_DISPLAY_INLINE_GRID */
+ BOX_GRID, /* CSS_DISPLAY_GRID */
+ BOX_INLINE_GRID, /* CSS_DISPLAY_INLINE_GRID */
};