From 0c261a1c959907666aa21a92e52e14a261b1c763 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Fri, 14 May 2021 21:36:26 +0200 Subject: [PATCH] LibWeb: Add border-radius to the CSS-parser And resolve the shorthands. --- Userland/Libraries/LibWeb/CSS/Properties.json | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index 321be3919f..3ffba496e1 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -1,6 +1,5 @@ { - "background": { - }, + "background": {}, "background-attachment": { "inherited": false, "initial": "scroll" @@ -72,6 +71,14 @@ "initial": "currentColor", "inherited": false }, + "border-bottom-left-radius": { + "initial": 0, + "inherited": false + }, + "border-bottom-right-radius": { + "initial": 0, + "inherited": false + }, "border-bottom-style": { "initial": "none", "inherited": false @@ -104,6 +111,14 @@ "initial": "medium", "inherited": false }, + "border-radius": { + "longhands": [ + "border-top-left-radius", + "border-top-right-radius", + "border-bottom-left-radius", + "border-bottom-right-radius" + ] + }, "border-right-color": { "initial": "currentColor", "inherited": false @@ -132,6 +147,14 @@ "initial": "currentColor", "inherited": false }, + "border-top-left-radius": { + "initial": 0, + "inherited": false + }, + "border-top-right-radius": { + "initial": 0, + "inherited": false + }, "border-top-style": { "initial": "none", "inherited": false