<p dir="auto">This is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2958775422" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5866" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5866/hovercard?comment_id=2764695781&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/5866#issuecomment-2764695781">#5866 (comment)</a> for borders. You want horizontal/vertical line boundaries to coincide with pixel boundaries. If the line is drawn at integer coordinates, it means that its width has to be an even number. The line shape boundaries are width/2 to one side and width/2 to another and you want the original coords +- width/2 to still be integers.</p>
<p dir="auto">Before, notice the blurry changeset bbox:<br>
<a href="https://github.com/user-attachments/assets/b6dddfdd-898a-4031-94bd-b225d90897db">image.png (view on web)</a></p>
<p dir="auto">This will be noticeable on 1x pixel density devices, and technically on 3x or other odd-numbered density, although physical pixels probably get too small to notice.</p>
<p dir="auto">After:<br>
<a href="https://github.com/user-attachments/assets/90f2a812-eb54-45fb-ba22-a91c7a97d900">image.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5936'>https://github.com/openstreetmap/openstreetmap-website/pull/5936</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5936/commits/7601146d111a455fa87bcbf59eca06bad81f034e" class="commit-link">7601146</a> Change highlighted bbox border width to 4px on history pages</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5936/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5936/files#diff-dc12b10289b1608e5deb501050928dc5db8564cb2e09e01de68e949662123404">app/assets/javascripts/index/history-changesets-layer.js</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5936.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5936.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5936.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5936.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5936">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJLOMM23YFI7D6OBHL2ZZDEHAVCNFSM6AAAAAB3IEIK3CVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE4TSNBWHE2DANA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJOTO35EIHUT3PFV2D2ZZDEHA5CNFSM6AAAAAB3IEIK3CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLFSCFLQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5936</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5936",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5936",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>