Bug 1686668 [wpt PR 27185] - Update wpt metadata, a=testonly
[gecko.git] / dom / base / test / test_meta_viewport_width_with_trailing_characters.html
blobf3545d057b1882364177483d3eef2b2634196693
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
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>
10 </head>
11 <body>
12 <p>width=400/</p>
13 <script type="application/javascript">
14 "use strict";
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");
23 });
24 </script>
25 </body>
26 </html>