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

LibWeb: Add longhand properties for background-position

If background-position was not longhand enough for you, we've
now got background-position-x and background-position-y :^)
This commit is contained in:
MacDue 2023-04-02 22:52:54 +01:00 committed by Andreas Kling
parent de4ab4f69e
commit d5e61168b2

View file

@ -126,6 +126,44 @@
"right",
"top"
],
"quirks": [
"unitless-length"
],
"longhands": [
"background-position-x",
"background-position-y"
]
},
"background-position-x": {
"inherited": false,
"affects-layout": false,
"initial": "0%",
"valid-types": [
"length",
"percentage"
],
"valid-identifiers": [
"center",
"left",
"right"
],
"quirks": [
"unitless-length"
]
},
"background-position-y": {
"inherited": false,
"affects-layout": false,
"initial": "0%",
"valid-types": [
"length",
"percentage"
],
"valid-identifiers": [
"center",
"bottom",
"top"
],
"quirks": [
"unitless-length"
]