blob: ddc7d60012797b15c894cd16c586325bd9031557 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This test that media query length computation works on scaled context.</title>
<style>
div {
width: 40px;
height: 40px;
background-color: red;
}
@media only screen and (min-width: 700px) {
div {
background-color: green;
}
}
</style>
</head>
<body>
<div></div>
<script>
if (window.internals) {
internals.setPageZoomFactor(2.5);
document.body.offsetHeight;
internals.setPageZoomFactor(1);
document.body.offsetHeight;
}
</script>
</body>
</html>