From ca3b86c922b885e96789987534790c48b1cb2873 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 10 Nov 2021 13:29:41 +0000 Subject: [PATCH] LibWeb: Add initial values and longhands to `background` definition There is no specified initial value, but `transparent` is equivalent to setting all the background properties to their defaults. --- Userland/Libraries/LibWeb/CSS/Properties.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index fb0d371ebd..487271f5b3 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -10,7 +10,20 @@ "stretch" ] }, - "background": {}, + "background": { + "inherited": false, + "initial": "transparent", + "longhands": [ + "background-attachment", + "background-clip", + "background-color", + "background-image", + "background-origin", + "background-position", + "background-repeat", + "background-size" + ] + }, "background-attachment": { "inherited": false, "initial": "scroll",