offset properties changed In the latest version of Chrome

258 views
Skip to first unread message

崔国棟

unread,
Sep 10, 2024, 12:02:36 PMSep 10
to Chromium-dev
In the latest version of Chrome, when using the offset properties, if the zoom level is adjusted using something like body.style.zoom, the coordinates returned reflect the zoomed values. Previously, the original (unzoomed) coordinates were returned. This change is causing misalignment issues with pop-up windows, such as those in jQuery UI. What could be causing this issue?

Stefan Zager

unread,
Sep 10, 2024, 1:25:13 PMSep 10
to cgd...@gmail.com, Chromium-dev
This is working as expected; here's the relevant spec languageweb platform test and wpt.fyi results.

You may find the newly-added Element.currentCSSZoom property useful for handling these values. If you think there's missing functionality, please file a spec issue.

On Tue, Sep 10, 2024 at 9:01 AM 崔国棟 <cgd...@gmail.com> wrote:
In the latest version of Chrome, when using the offset properties, if the zoom level is adjusted using something like body.style.zoom, the coordinates returned reflect the zoomed values. Previously, the original (unzoomed) coordinates were returned. This change is causing misalignment issues with pop-up windows, such as those in jQuery UI. What could be causing this issue?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e2d729fd-706c-414a-ac5d-3ee01a517799n%40chromium.org.

崔国棟

unread,
Sep 11, 2024, 12:50:52 PMSep 11
to Chromium-dev, Stefan Zager, Chromium-dev
Thank you very much for your answer.
I changed the zoom property to currentCSSZoom and it works fine now.

2024年9月11日水曜日 2:25:13 UTC+9 Stefan Zager:
Reply all
Reply to author
Forward
0 new messages