diff options
Diffstat (limited to '')
-rw-r--r-- | dom/base/test/meta_viewport/test_meta_viewport_no_content_and_valid_content_tags.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dom/base/test/meta_viewport/test_meta_viewport_no_content_and_valid_content_tags.html b/dom/base/test/meta_viewport/test_meta_viewport_no_content_and_valid_content_tags.html new file mode 100644 index 0000000000..f5a78d9eec --- /dev/null +++ b/dom/base/test/meta_viewport/test_meta_viewport_no_content_and_valid_content_tags.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>a valid meta viewport tag and no content attribute viewport tag</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> + <meta name="viewport" content="width=400"> + <meta name="viewport"> + <script src="viewport_helpers.js"></script> +</head> +<body> + <script type="application/javascript"> + "use strict"; + + add_task(async function multiple_viewport_tags() { + await SpecialPowers.pushPrefEnv(scaleRatio(1.0)); + + let info = getViewportInfo(800, 480); + // The no content attribute meta tag should be ignored. + is(info.width, 400, "width should be 400"); + }); + </script> +</body> +</html> |