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. :^)
This commit is contained in:
Andreas Kling 2021-09-13 15:23:36 +02:00
parent 1d47d41c01
commit 09087b8f8e
Notes: sideshowbarker 2024-07-18 04:02:29 +09:00
2 changed files with 60 additions and 2 deletions

View File

@ -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",

View File

@ -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"