Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / test / test_bug580685.html
blobe54dfc2d7ff86191db6934218d3272754ca18d57
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=580685
5 -->
6 <head>
7 <title>Test for Bug 580685</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=580685">Mozilla Bug 580685</a>
13 <p id="display">
14 <iframe id="f" srcdoc="<body style='outline-offset: 1rem'>">
15 </iframe>
16 </p>
17 <div id="content" style="display: none">
19 </div>
20 <pre id="test">
21 <script type="application/javascript">
23 /** Test for Bug 580685 **/
24 SimpleTest.waitForExplicitFinish()
25 addLoadEvent(function() {
26 var doc = $("f").contentDocument;
27 var b = doc.body;
28 doc.removeChild(doc.documentElement);
29 is(doc.defaultView.getComputedStyle(b).outlineOffset,
30 doc.defaultView.getComputedStyle(b).fontSize,
31 "1rem did not compute correctly");
32 SimpleTest.finish();
33 });
38 </script>
39 </pre>
40 </body>
41 </html>