aboutsummaryrefslogtreecommitdiff
path: root/407/index.md
diff options
context:
space:
mode:
Diffstat (limited to '407/index.md')
-rw-r--r--407/index.md6
1 files changed, 6 insertions, 0 deletions
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