diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-17 17:18:06 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-17 23:06:45 +0200 |
commit | 4f81cb927a093c166d7ac39c2f27c1486c6ea06e (patch) | |
tree | ee5a9de09cbb93c69b5df98056da6cf3e93e2756 | |
parent | fc11b1f24297c4bee4fe962b86cd89a01773579e (diff) | |
download | serenity-4f81cb927a093c166d7ac39c2f27c1486c6ea06e.zip |
LibWeb: Correct some initial values and add missing ones
- The `text-decoration-foo` values now match the spec.
- Added values for `border-foo` since those are needed soon.
- Make `color`'s initial value be `-libweb-palette-base-text`.
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Properties.json | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index cca09ead18..2b82c4806c 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -104,6 +104,7 @@ ] }, "border-color": { + "initial": "currentcolor", "longhands": [ "border-top-color", "border-right-color", @@ -164,12 +165,13 @@ }, "border-spacing": { "inherited": true, - "initial": "0", + "initial": "0px 0px", "quirks": [ "unitless-length" ] }, "border-style": { + "initial": "none", "longhands": [ "border-top-style", "border-right-style", @@ -204,6 +206,7 @@ ] }, "border-width": { + "initial": "medium", "longhands": [ "border-top-width", "border-right-width", @@ -246,7 +249,7 @@ }, "color": { "inherited": true, - "initial": "", + "initial": "-libweb-palette-base-text", "quirks": [ "hashless-hex-color" ] @@ -569,7 +572,7 @@ }, "text-decoration-color": { "inherited": false, - "initial": "none" + "initial": "currentcolor" }, "text-decoration-line": { "__comment": "FIXME: This property is not supposed to be inherited, but we currently rely on inheritance to propagate decorations into line boxes.", @@ -578,7 +581,7 @@ }, "text-decoration-style": { "inherited": false, - "initial": "none" + "initial": "solid" }, "text-decoration-thickness": { "inherited": false, |