[Webkit-unassigned] [Bug 41063] Media query - width in 'em's doesn't work on zoom

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 27 12:57:59 PDT 2023


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

--- Comment #16 from Šime Vidas <sime.vidas at gmail.com> ---
Created attachment 466834

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

CSS media query matches, JS matchMedia doesn’t match

Is this a bug only with the matchMedia function?

Steps to reproduce:

1. Open https://output.jsbin.com/kugeqax/quiet
2. Zoom in once
3. Observe that the background is still yellow
4. Open WebKit Inspector console and run matchMedia('(min-width: 69em)').matches

The function returns false, but the same media query in CSS still applies to the page.

-- 
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/20230627/5c9020a2/attachment.htm>


More information about the webkit-unassigned mailing list