[Webkit-unassigned] [Bug 264158] New: Support devicePixelContentBoxSize with ResizeObserver
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 3 07:44:10 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=264158
Bug ID: 264158
Summary: Support devicePixelContentBoxSize with ResizeObserver
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gman at chromium.org
Created attachment 468470
--> https://bugs.webkit.org/attachment.cgi?id=468470&action=review
example showing the need for devicePixelContentBoxSize
It's impossible to get the correct sizes for elements in Safari because it does not support devicePixelContentBoxSize with ResizeObserver
See attached example: it makes 3 elements each 33% the size of their parent
Asking the sizes via ResizeObserver or via getBoundingClientRect shows all 3 elements return the exact same size but take a screenshot measure and you'll see the center element is 200 device pixels where as the left and right elements are 199 device pixels
This is one of the things that devicePixelContentBoxSize is for. Finding out the actual sizes of elements for pixel perfect rendering
Try it in Firefox or Chrome and they'll tell you the sizes via devicePixelContentBoxSize
--
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/20231103/0b8acb21/attachment.htm>
More information about the webkit-unassigned
mailing list