From fb510ea86be5ceb9e91573890242581fdbd77ad8 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 28 Sep 2025 20:26:15 +0200 Subject: Initial version --- 407/index.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 407/index.md (limited to '407/index.md') diff --git a/407/index.md b/407/index.md new file mode 100644 index 0000000..7460f9f --- /dev/null +++ b/407/index.md @@ -0,0 +1,6 @@ +Title: Fractional pixel margin rounding issue +Author: campaul +Created: Mon, 02 Jun 2025 17:44:27 +0000 +State: open + +Margins are rounded to a pixel value *before* being added resulting in margins sometimes being 1 pixel too wide. For example, if two adjacent elements both have margins of `2.5px`, those margins will get rounded to 3 resulting in a total space of 6 pixels between the elements. The correct behavior is to add them before rounding which would result in a total space of 5 pixels. \ No newline at end of file -- cgit v1.2.3