4 https://bugzilla.mozilla.org/show_bug.cgi?id=580685
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"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=580685">Mozilla Bug
580685</a>
14 <iframe id=
"f" srcdoc=
"<body style='outline-offset: 1rem'>">
17 <div id=
"content" style=
"display: none">
21 <script type=
"application/javascript">
23 /** Test for Bug
580685 **/
24 SimpleTest.waitForExplicitFinish()
25 addLoadEvent(function() {
26 var doc = $(
"f").contentDocument;
28 doc.removeChild(doc.documentElement);
29 is(doc.defaultView.getComputedStyle(b).outlineOffset,
30 doc.defaultView.getComputedStyle(b).fontSize,
31 "1rem did not compute correctly");