1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +00:00

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
2 changed files with 19 additions and 0 deletions

View file

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

View file

@ -1624,6 +1624,18 @@
"object-fit" "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": { "opacity": {
"affects-layout": false, "affects-layout": false,
"affects-stacking-context": true, "affects-stacking-context": true,