LibWeb: Create enum for <line-width> keywords

This commit is contained in:
Callum Law 2025-07-09 22:32:40 +12:00 committed by Jelle Raaijmakers
commit f46bd7f5eb
Notes: github-actions[bot] 2025-07-09 11:29:22 +00:00
2 changed files with 21 additions and 48 deletions

View file

@ -450,6 +450,11 @@
"inset", "inset",
"outset" "outset"
], ],
"line-width": [
"thin",
"medium",
"thick"
],
"list-style-position": [ "list-style-position": [
"inside", "inside",
"outside" "outside"

View file

@ -599,12 +599,8 @@
], ],
"max-values": 2, "max-values": 2,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
] ]
}, },
"border-bottom": { "border-bottom": {
@ -665,12 +661,8 @@
"initial": "medium", "initial": "medium",
"inherited": false, "inherited": false,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
], ],
"quirks": [ "quirks": [
"unitless-length" "unitless-length"
@ -889,12 +881,8 @@
], ],
"max-values": 2, "max-values": 2,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
] ]
}, },
"border-left": { "border-left": {
@ -931,12 +919,8 @@
"initial": "medium", "initial": "medium",
"inherited": false, "inherited": false,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
], ],
"quirks": [ "quirks": [
"unitless-length" "unitless-length"
@ -992,12 +976,8 @@
"initial": "medium", "initial": "medium",
"inherited": false, "inherited": false,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
], ],
"quirks": [ "quirks": [
"unitless-length" "unitless-length"
@ -1100,12 +1080,8 @@
"initial": "medium", "initial": "medium",
"inherited": false, "inherited": false,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
], ],
"quirks": [ "quirks": [
"unitless-length" "unitless-length"
@ -1121,12 +1097,8 @@
], ],
"max-values": 4, "max-values": 4,
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
], ],
"quirks": [ "quirks": [
"unitless-length" "unitless-length"
@ -2614,12 +2586,8 @@
"inherited": false, "inherited": false,
"initial": "medium", "initial": "medium",
"valid-types": [ "valid-types": [
"length [0,∞]" "length [0,∞]",
], "line-width"
"valid-identifiers": [
"medium",
"thick",
"thin"
] ]
}, },
"overflow": { "overflow": {