diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-09-28 20:26:15 +0200 |
---|---|---|
committer | Rodrigo <rodarima@gmail.com> | 2025-09-28 23:10:55 +0200 |
commit | fb510ea86be5ceb9e91573890242581fdbd77ad8 (patch) | |
tree | d819fe40683592008d136727f5a0b03e48dc1164 /407 |
Diffstat (limited to '407')
-rw-r--r-- | 407/index.md | 6 |
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 |