Closed Bug 1608470 Opened 4 years ago Closed 5 months ago

Investigate how to correctly set the viewport units and media queries for Emulation.setDeviceMetricsOverride's

Categories

(Remote Protocol :: CDP, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: whimboo, Unassigned)

References

Details

(In reply to Emilio Cobos Álvarez (:emilio) from bug 1544417 comment #17)

That being said, if per the documentation inner{Width,Height} changes, I'd expect viewport units and width / height media queries and such to change as well. So it is consistent at least.

The patch on bug 1544417 will land the basics to get us going with the viewport emulation. Right now it passes a lot of Puppeteer unit tests, and also seems to behave correctly when interacting with the browser. Nevertheless it would be good to dive into that as follow-up and make the behavior correct for web pages.

Component: CDP: Emulation → CDP
Severity: normal → S3

We are not going to fix this API for CDP but we will have it eventually for WebDriver BiDi.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.