32 lines
538 B
HTML
32 lines
538 B
HTML
<!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>
|