RESOLVED FIXED 249992
[CSS Container Queries] @container query not affected when page Zoomed in our out
https://bugs.webkit.org/show_bug.cgi?id=249992
Summary [CSS Container Queries] @container query not affected when page Zoomed in our...
Roman Czerkies
Reported 2023-01-02 01:32:57 PST
When we zoom in or zoom out on in Safari, container queries are not affected by the change of the inline-size of the viewport. That particularly affect the user accessibility.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-01-09 01:33:17 PST
Roman Czerkies
Comment 2 2023-01-09 02:25:32 PST
It can be reproduced on : https://romanczerki.es/
Simon Fraser (smfr)
Comment 3 2023-01-10 09:14:56 PST
When you say "zoomed", how are you zooming? With Command-+, or pinch-zoom?
Roman Czerkies
Comment 4 2023-01-11 02:19:15 PST
When zooming with Command-+. The normal behavior of the @container query on the `nav` element only appear when you increase or decrease the size of the viewport.
Antti Koivisto
Comment 5 2023-01-11 08:11:54 PST
I think we fail to take 'zoom' property into account when evaluating container queries.
Roman Czerkies
Comment 6 2023-09-04 04:28:53 PDT
A new wrong behavior detected about container queries: * Set a `container` property in html element (as an Initial Containing Block) * Zoom+- in the webpage, nothing happen * Reload the page to see the zoom effect Don't know if this bug has to be fill in a new issue, but it sounds like to be involved in the same first reported (https://bugs.webkit.org/show_bug.cgi?id=249992#c0).
Roman Czerkies
Comment 7 2023-10-23 06:47:26 PDT
New wrong behaviors with a `container` property set on `html` element: * Once in a while, when you open a link in this page and clic on precedent the page is not rendering (a blank page occurs). * When media queries are updated from the device's operating system, or the user agent (`prefers-color-scheme` or `prefers-contrast` for instance) anything is updated, you have to reload the page to update the page and custom properties.
Roman Czerkies
Comment 8 2024-12-22 06:48:21 PST
Issue resolved with this fix: https://bugs.webkit.org/show_bug.cgi?id=282592. Thanks.
Note You need to log in before you can comment on or make changes to this bug.