Skip to content

Commit

Permalink
style: Fix border-width property when given 2 values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Louciole committed Sep 6, 2024
1 parent 61bf8ea commit 5cff6ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/web/vaev-style/styles.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,13 @@ struct BorderWidthProp {
value[0] = try$(parseValue<Length>(c));
if (c.ended()) {
value[1] = value[0];
value[2] = value[0];
value[3] = value[0];
} else {
value[1] = try$(parseValue<Length>(c));
value[2] = value[0];
value[0] = value[1];
value[3] = value[2];
}

return Ok();
Expand Down

2 comments on commit 5cff6ac

@sleepy-monax
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥰

@Louciole
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥰

J'ai même mis une majuscule et un point a mon commit 🫡

Please sign in to comment.