aboutsummaryrefslogtreecommitdiff
path: root/407/index.md
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-09-28 20:26:15 +0200
committerRodrigo <rodarima@gmail.com>2025-09-28 23:10:55 +0200
commitfb510ea86be5ceb9e91573890242581fdbd77ad8 (patch)
treed819fe40683592008d136727f5a0b03e48dc1164 /407/index.md
Initial versionHEADmain
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