Snap a CSS coordinate to a whole device-pixel boundary.
Use for line endpoints and the edges of filled rectangles, so two shapes that share an edge resolve to the same device pixel (no seam, no overlap).
Snap a CSS coordinate to a whole device-pixel boundary.
Use for line endpoints and the edges of filled rectangles, so two shapes that share an edge resolve to the same device pixel (no seam, no overlap).