[Webkit-unassigned] [Bug 226334] New: Canvas textBaseline "top" inconsistent with Chrome

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 27 08:58:01 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226334

            Bug ID: 226334
           Summary: Canvas textBaseline "top" inconsistent with Chrome
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com
                CC: dino at apple.com

When drawing text with canvas2d with the "top" baseline, Safari's positioning is different to Chrome.

Minimal repro: https://downloads.scirra.com/labs/bugs/text-top-baseline/index.html

Comparison Safari vs. Chrome image: https://downloads.scirra.com/labs/bugs/text-top-baseline/comparison.png

Observed result: notice the text in Safari is positioned a few pixels lower from the top.

Expected result: text positioning to be consistent across browsers. This issue makes it difficult to get consistent text positioning when drawing text to canvases, particularly if the text is positioned relatively to other content, such as a box drawn around it, or when trying to calculate vertical alignment.

I am not sure which browser is correct, so I'm filing issues with both Safari and Chrome.

-- 
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/20210527/d0e299d1/attachment.htm>


More information about the webkit-unassigned mailing list