4 https://bugzilla.mozilla.org/show_bug.cgi?id=1451199
8 <title>Test for Bug
1451199</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
1451199 **/
14 SimpleTest.waitForExplicitFinish();
16 addLoadEvent(function() {
17 var iframe = document.querySelector(
"iframe");
19 iframe.contentDocument.documentElement.offsetWidth; // Flush layout
21 // We have to be careful to not check l.matches until the very end
23 var l = frames[
0].matchMedia(
"(orientation: portrait)");
24 l.onchange = function() {
26 "Should not match portrait by the time we get notified");
34 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1451199">Mozilla Bug
1451199</a>
35 <p id=
"display"><iframe height=
"100" width=
"200"></iframe></p>
36 <div id=
"content" style=
"display: none">