[Webkit-unassigned] [Bug 248222] New: Not all consecutively centered SVGs are grid fitted
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 22 06:29:37 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248222
Bug ID: 248222
Summary: Not all consecutively centered SVGs are grid fitted
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: macOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tobfa at cendio.com
CC: sabouhallawa at apple.com, zimmermann at kde.org
Created attachment 463663
--> https://bugs.webkit.org/attachment.cgi?id=463663&action=review
Comparison SVG grid fitting
I am dealing with SVG images which may vary in terms of even/uneven whole pixel widths. They should be centered on the page above one another, and the expected result is that whole pixels are preserved, i.e. no color blending rendition. Since some are of even pixel widths, and vice versa, they cannot possible all be perfectly centered, but some should rather be nudged by the browser and aligned whole-pixel with the browser grid.
I am attaching two test case SVGs containing a striped 4px and 5px pattern respectively, and the HTML code snippet is written below. Furthermore, I am attaching screenshots taken on a Mac (13.0.1, normal dpi) workstation depicting the output from Firefox (107.0), Google Chrome (107.0.5304.110), and Safari (16.1 [18614.2.9.1.12]), where the Firefox output is the preferred behavior.
HTML CODE:
=============
<!DOCTYPE html>
<html>
<body style="text-align: center;">
<div style="height: 8px;">
<img src="lines_4.svg" />
</div>
<div style="height: 8px;">
<img src="lines_5.svg" />
</div>
</body>
</html>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221122/1f2a7f47/attachment.htm>
More information about the webkit-unassigned
mailing list