Skip to content

Commit

Permalink
style: Give the outline properties default values
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Nov 24, 2023
1 parent ebc0fd4 commit 453c35a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions style/styled_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ std::map<css::PropertyId, std::string_view> 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},
Expand Down

0 comments on commit 453c35a

Please sign in to comment.