4 <title>Viewport 'min-width' descriptor has 'extend-to-zoom' value
</title>
5 <script src=
"../../resources/testharness.js"></script>
6 <script src=
"../../resources/testharnessreport.js"></script>
8 html, body { width:
100%; height:
100%; margin:
0 }
9 @viewport { min-width: -internal-extend-to-zoom
200px; zoom:
1.0; }
16 assert_true(window
.internals
instanceof Object
);
17 }, "Check that window.internals is present. Required to call viewportAsText.");
22 var vpString
= internals
.viewportAsText(document
, 1, 320, 352);
23 var match
= /viewport size (.+)x(.+) scale (.+ )/.exec(vpString
);
26 actualWidth
= parseFloat(match
[1]);
30 assert_equals(actualWidth
, 320);
31 }, "Check viewport width.");