浏览代码

LibWeb: Fill in some missing property data and bodge extra types

We don't yet have generic parsing support for `<filter-value-list>` or
`<paint>`, so listing them here confuses the new StyleValue parsing code
I'm working on. For now, let's skip `<filter-value-list>` since it's
only used in one pkace which manually parses it, and list the parts of
`<paint>` instead which are taken from here:
https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint
Sam Atkins 2 年之前
父节点
当前提交
6f3e48db57
共有 1 个文件被更改,包括 10 次插入4 次删除
  1. 10 4
      Userland/Libraries/LibWeb/CSS/Properties.json

+ 10 - 4
Userland/Libraries/LibWeb/CSS/Properties.json

@@ -42,9 +42,7 @@
     "affects-stacking-context": true,
     "inherited": false,
     "initial": "none",
-    "valid-types": [
-      "filter-value-list"
-    ],
+    "__comment": "FIXME: List `filter-value-list` as a valid-type once it's generically supported.",
     "valid-identifiers": [
       "none"
     ]
@@ -392,6 +390,9 @@
   "border-spacing": {
     "inherited": true,
     "initial": "0",
+    "valid-types": [
+      "length"
+    ],
     "quirks": [
       "unitless-length"
     ]
@@ -413,6 +414,9 @@
     "affects-layout": false,
     "initial": "currentcolor",
     "inherited": false,
+    "valid-types": [
+      "color"
+    ],
     "quirks": [
       "hashless-hex-color"
     ]
@@ -622,8 +626,10 @@
     "affects-layout": false,
     "inherited": true,
     "initial": "black",
+    "__comment": "FIXME: Use `paint` as the type, once we have a PaintStyleValue and generic parsing for it.",
     "valid-types": [
-      "paint"
+      "color",
+      "url"
     ],
     "valid-identifiers": [
       "none"