3 <title>CSS3 media query test: deleteMedium throwing exception.</title>
4 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/" />
6 <style type="text/css">
7 @media all and (color) {
8 p#result { color: green;}
12 <script language="javascript">
15 document.styleSheets[0].cssRules[0].media.deleteMedium("all and (");
18 document.getElementById("result").innerHTML = "Success."
19 document.getElementById("details").innerHTML = "Following exception was caught: " + e;
26 <body onload="test()">
27 <p>The text below should read "Success." </p>
28 <p id="result">Failure: test not run.</p>