[Webkit-unassigned] [Bug 253821] New: Offscreen Canvas does not respect size set via CSS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 13 06:44:35 PDT 2023


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

            Bug ID: 253821
           Summary: Offscreen Canvas does not respect size set via CSS
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: oscarbouwmans at me.com
                CC: dino at apple.com

Created attachment 465417

  --> https://bugs.webkit.org/attachment.cgi?id=465417&action=review

Screenshots of the bug in Safari Technology Preview and another browser side by side.

Example:
Given the canvas has HTML attributes width=200 and height=200;
when the CSS rules width:100px and height:100px are applied,
the OffscreenCanvas renders at original 200x200 scale, overflowing the box of 100x100.

Please find an example in the attached screenshot, and a simple reproduction case here:
https://stackblitz.com/edit/webkit-offscreen-canvas-scaling

-- 
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/20230313/dae83608/attachment.htm>


More information about the webkit-unassigned mailing list