From 453c35aadad86154ff679364b8b40fc27ea0aa2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Lind=C3=A9n?= Date: Sat, 25 Nov 2023 00:45:35 +0100 Subject: [PATCH] style: Give the outline properties default values --- style/styled_node.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/style/styled_node.cpp b/style/styled_node.cpp index f448c5b9a..42d630868 100644 --- a/style/styled_node.cpp +++ b/style/styled_node.cpp @@ -83,6 +83,11 @@ std::map const initial_values{ {css::PropertyId::BorderRightWidth, "medium"sv}, {css::PropertyId::BorderTopWidth, "medium"sv}, + // https://developer.mozilla.org/en-US/docs/Web/CSS/outline + {css::PropertyId::OutlineColor, "currentcolor"}, + {css::PropertyId::OutlineStyle, "none"}, + {css::PropertyId::OutlineWidth, "medium"}, + // https://developer.mozilla.org/en-US/docs/Web/CSS/padding#formal_definition {css::PropertyId::PaddingBottom, "0"sv}, {css::PropertyId::PaddingLeft, "0"sv},