LibWeb: Add 'object-position' property and 'position' enum

This patch adds the 'object-position' CSS property description to the
json for code generation.
Also the 'position' enum is added. The values of this enum are the
valid inputs to the object-position property from CSS Values-4.
This commit is contained in:
Tobias Christiansen 2023-10-16 13:49:52 +02:00 committed by Sam Atkins
parent 6602b1ddb1
commit 7e11de272f
Notes: sideshowbarker 2024-07-17 09:41:18 +09:00
2 changed files with 19 additions and 0 deletions

View File

@ -319,6 +319,13 @@
"all",
"none"
],
"position": [
"left",
"right",
"top",
"bottom",
"center"
],
"positioning": [
"absolute",
"fixed",

View File

@ -1624,6 +1624,18 @@
"object-fit"
]
},
"object-position": {
"affects-layout": false,
"inherited": false,
"initial": "50% 50%",
"max-values": 2,
"valid-types": [
"length [-∞,∞]",
"percentage [-∞,∞]",
"position"
],
"percentages-resolve-to": "length"
},
"opacity": {
"affects-layout": false,
"affects-stacking-context": true,