4 https://bugzilla.mozilla.org/show_bug.cgi?id=573255
7 <title>Test for Bug
573255</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
10 <style type=
"text/css">
12 #display:not
(.hasSummary
) { visibility: hidden
}
17 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=573255">Mozilla Bug
573255</a>
20 <script type=
"application/javascript">
22 var p = document.getElementById(
"display");
23 var cs = getComputedStyle(p,
"");
25 is(cs.visibility,
"hidden",
"should be visibility:none since it has no class");
26 p.className =
"hasSummary";
27 is(cs.visibility,
"visible",
"changing class attribute should remove visibility:hidden");