media queries don't work with device emulation |
||||
Issue description
A query like window.matchMedia('(min-width: 600px)'); matches when emulating a device, even if it has less than 600px width.
It works as expected when not emulating devices and just resizing the screen
,
Jan 20 2017
,
Jan 21 2017
,
Jan 21 2017
This is due to default 980px body width kicking in for non-mobile sites. Trying 'min-device-width: 600px' works for me. |
||||
►
Sign in to add a comment |
||||
Comment 1 by caseq@chromium.org
, Jan 20 201755.3 KB
55.3 KB View Download