New issue
Advanced search Search tips

Issue 683325 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

media queries don't work with device emulation

Project Member Reported by jochen@chromium.org, Jan 20 2017

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
 

Comment 1 by caseq@chromium.org, Jan 20 2017

Labels: Needs-Feedback
Works for me so far...
device-mode-media-query.png
55.3 KB View Download

Comment 2 by caseq@chromium.org, Jan 20 2017

Status: Unconfirmed (was: Untriaged)

Comment 3 by caseq@chromium.org, Jan 21 2017

Cc: dgozman@chromium.org
Status: WontFix (was: Unconfirmed)
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