From 09087b8f8efce3057058e0fd08814d4822cdebc1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 13 Sep 2021 15:23:36 +0200 Subject: [PATCH] LibWeb: Add handful of CSS properties and identifiers This is just to make the CSS parser stop whining when it encounters some very common properties and identifiers. More work will be required to actually support these things. :^) --- .../Libraries/LibWeb/CSS/Identifiers.json | 16 ++++++- Userland/Libraries/LibWeb/CSS/Properties.json | 46 ++++++++++++++++++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/Identifiers.json b/Userland/Libraries/LibWeb/CSS/Identifiers.json index c5e6718335..dbbc891b0e 100644 --- a/Userland/Libraries/LibWeb/CSS/Identifiers.json +++ b/Userland/Libraries/LibWeb/CSS/Identifiers.json @@ -58,12 +58,17 @@ "absolute", "alias", "all-scroll", + "anywhere", "auto", + "baseline", "blink", "block", "bold", "bolder", "both", + "bottom", + "border-box", + "break-word", "capitalize", "cell", "center", @@ -73,6 +78,7 @@ "column", "column-reverse", "content", + "content-box", "context-menu", "copy", "crosshair", @@ -102,6 +108,7 @@ "inline-block", "inset", "inside", + "invert", "italic", "justify", "large", @@ -115,6 +122,7 @@ "lower-latin", "lower-roman", "medium", + "middle", "monospace", "move", "ne-resize", @@ -157,11 +165,14 @@ "solid", "space", "space-around", + "s-resize", "space-between", "square", - "s-resize", "static", "sticky", + "stretch", + "sub", + "super", "sw-resize", "table", "table-caption", @@ -173,6 +184,9 @@ "table-row", "table-row-group", "text", + "text-bottom", + "text-top", + "top", "ui-monospace", "ui-rounded", "ui-sans-serif", diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index ac68d6ff5c..2652c9332f 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -1,4 +1,8 @@ { + "align-items": { + "inherited": false, + "initial": "normal" + }, "background": {}, "background-attachment": { "inherited": false, @@ -217,10 +221,14 @@ "unitless-length" ] }, - "box-shadow":{ + "box-shadow": { "inherited": false, "initial": "none" }, + "box-sizing": { + "inherited": false, + "initial": "content-box" + }, "caption-side": { "inherited": true, "initial": "top" @@ -255,6 +263,10 @@ "inherited": false, "initial": "inline" }, + "fill": { + "inherited": true, + "initial": "black" + }, "flex": { "longhands": [ "flex-grow", @@ -443,6 +455,26 @@ "inherited": false, "initial": "1" }, + "outline": { + "inherited": false, + "longhands": [ + "outline-color", + "outline-style", + "outline-width" + ] + }, + "outline-color": { + "inherited": false, + "initial": "invert" + }, + "outline-style": { + "inherited": false, + "initial": "none" + }, + "outline-width": { + "inherited": false, + "initial": "medium" + }, "overflow": { "longhands": [ "overflow-x", @@ -498,6 +530,10 @@ "unitless-length" ] }, + "pointer-events": { + "inherited": true, + "initial": "auto" + }, "position": { "inherited": false, "initial": "static" @@ -558,6 +594,10 @@ "unitless-length" ] }, + "user-select": { + "inherited": false, + "initial": "auto" + }, "vertical-align": { "inherited": false, "initial": "baseline", @@ -587,6 +627,10 @@ "unitless-length" ] }, + "word-wrap": { + "inherited": true, + "initial": "normal" + }, "z-index": { "inherited": false, "initial": "auto"