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

LibWeb: Replace is_inherited_property() with generated code

We already include the inheritance for each property in Properties.json,
so made sense to use that instead of a list in StyleResolver.

Added `inherited: true` to a couple of properties to match the previous
code's behavior. One of those had a FIXME which I've moved to the JSON
file, which is hacky, but it works.
This commit is contained in:
Sam Atkins 2021-08-16 16:07:13 +01:00 committed by Andreas Kling
parent ea2b02186c
commit 0fba71a655
5 changed files with 36 additions and 36 deletions

View file

@ -293,6 +293,7 @@
"initial": "normal"
},
"list-style": {
"inherited": true,
"longhands": [
"list-style-type",
"list-style-position",
@ -422,7 +423,8 @@
"initial": "none"
},
"text-decoration-line": {
"inherited": false,
"__comment": "FIXME: This property is not supposed to be inherited, but we currently rely on inheritance to propagate decorations into line boxes.",
"inherited": true,
"initial": "none"
},
"text-decoration-style": {