浏览代码

LibWeb: Allow percentages in word/letter-spacing properties

This is a change to CSS-TEXT-4, listed here:
https://www.w3.org/TR/2022/WD-css-text-4-20220318/#changes

We don't actually support these properties yet, but it doesn't hurt to
keep them up to date for when they get implemented in the future. :^)
Sam Atkins 3 年之前
父节点
当前提交
ca1b855d99
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Userland/Libraries/LibWeb/CSS/Properties.json

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

@@ -829,7 +829,8 @@
     "inherited": true,
     "inherited": true,
     "initial": "normal",
     "initial": "normal",
     "valid-types": [
     "valid-types": [
-      "length"
+      "length",
+      "percentage"
     ],
     ],
     "valid-identifiers": [
     "valid-identifiers": [
       "normal"
       "normal"
@@ -1459,7 +1460,8 @@
     "inherited": true,
     "inherited": true,
     "initial": "normal",
     "initial": "normal",
     "valid-types": [
     "valid-types": [
-      "length"
+      "length",
+      "percentage"
     ],
     ],
     "valid-identifiers": [
     "valid-identifiers": [
       "normal"
       "normal"