mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03: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:
parent
6602b1ddb1
commit
7e11de272f
Notes:
sideshowbarker
2024-07-17 09:41:18 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/7e11de272f Pull-request: https://github.com/SerenityOS/serenity/pull/21461 Reviewed-by: https://github.com/AtkinsSJ
@ -319,6 +319,13 @@
|
||||
"all",
|
||||
"none"
|
||||
],
|
||||
"position": [
|
||||
"left",
|
||||
"right",
|
||||
"top",
|
||||
"bottom",
|
||||
"center"
|
||||
],
|
||||
"positioning": [
|
||||
"absolute",
|
||||
"fixed",
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user