<!DOCTYPE HTML>
<html>
<head>
  <title>Bug 1089417</title>
  <style>
    html { background: red }
    @media (min-height: 300px) { html { background: green } }
  </style>
  <style id="s">/* empty */</style>
  <script>
    document.getElementById("s").disabled = true;
  </script>
</head>
<body>

</body>
</html>