mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibWeb: Add initial values for all CSS properties
It's a little verbose to repeat these in cases like the borders, but if everything has an initial value, we can guarantee that `property_initial_value()` will return something! :^)
This commit is contained in:
parent
ca3b86c922
commit
11f0ece58f
1 changed files with 25 additions and 0 deletions
|
@ -118,6 +118,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border": {
|
"border": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "medium currentcolor none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-width",
|
"border-width",
|
||||||
"border-style",
|
"border-style",
|
||||||
|
@ -125,6 +127,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border-top": {
|
"border-top": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "medium currentcolor none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-top-width",
|
"border-top-width",
|
||||||
"border-top-style",
|
"border-top-style",
|
||||||
|
@ -132,6 +136,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border-right": {
|
"border-right": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "medium currentcolor none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-right-width",
|
"border-right-width",
|
||||||
"border-right-style",
|
"border-right-style",
|
||||||
|
@ -139,6 +145,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border-bottom": {
|
"border-bottom": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "medium currentcolor none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-bottom-width",
|
"border-bottom-width",
|
||||||
"border-bottom-style",
|
"border-bottom-style",
|
||||||
|
@ -146,6 +154,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border-left": {
|
"border-left": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "medium currentcolor none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-left-width",
|
"border-left-width",
|
||||||
"border-left-style",
|
"border-left-style",
|
||||||
|
@ -277,6 +287,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"border-radius": {
|
"border-radius": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "0",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"border-top-left-radius",
|
"border-top-left-radius",
|
||||||
"border-top-right-radius",
|
"border-top-right-radius",
|
||||||
|
@ -581,6 +593,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"flex": {
|
"flex": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "0 1 auto",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"flex-grow",
|
"flex-grow",
|
||||||
"flex-shrink",
|
"flex-shrink",
|
||||||
|
@ -610,6 +624,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"flex-flow": {
|
"flex-flow": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "row nowrap",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"flex-direction",
|
"flex-direction",
|
||||||
"flex-wrap"
|
"flex-wrap"
|
||||||
|
@ -648,6 +664,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"font": {
|
"font": {
|
||||||
|
"inherited": true,
|
||||||
|
"initial": "normal medium sans-serif",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"font-family",
|
"font-family",
|
||||||
"font-size",
|
"font-size",
|
||||||
|
@ -778,6 +796,7 @@
|
||||||
},
|
},
|
||||||
"list-style": {
|
"list-style": {
|
||||||
"inherited": true,
|
"inherited": true,
|
||||||
|
"initial": "outside disc",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"list-style-type",
|
"list-style-type",
|
||||||
"list-style-position",
|
"list-style-position",
|
||||||
|
@ -824,6 +843,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"margin": {
|
"margin": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "0",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"margin-top",
|
"margin-top",
|
||||||
"margin-right",
|
"margin-right",
|
||||||
|
@ -964,6 +985,8 @@
|
||||||
},
|
},
|
||||||
"outline": {
|
"outline": {
|
||||||
"inherited": false,
|
"inherited": false,
|
||||||
|
"__comment": "FIXME: Initial value is really `medium invert none` but we don't yet parse the outline shorthand.",
|
||||||
|
"initial": "none",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"outline-color",
|
"outline-color",
|
||||||
"outline-style",
|
"outline-style",
|
||||||
|
@ -1047,6 +1070,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"padding": {
|
"padding": {
|
||||||
|
"inherited": false,
|
||||||
|
"initial": "0",
|
||||||
"longhands": [
|
"longhands": [
|
||||||
"padding-top",
|
"padding-top",
|
||||||
"padding-right",
|
"padding-right",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue