5 <title>width with trailing characters in meta viewport
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
8 <meta name=
"viewport" content=
"width=400/">
9 <script src=
"viewport_helpers.js"></script>
13 <script type=
"application/javascript">
16 add_task(async function width_with_trailing_characters() {
17 await SpecialPowers.pushPrefEnv(scaleRatio(
1.0));
19 let info = getViewportInfo(
800,
480);
20 is(info.width,
400,
"width should be 400");
21 is(info.height,
240,
"height should be 240 which is the result of the " +
22 "display height * viewport width / display width");