<!DOCTYPE html>
<html class="test-wait">
  <link rel="help" href="https://crbug.com/1085994">
  <style id="style">
    @property --x {
      syntax: "<length>";
      inherits: false;
      initial-value: 0px;
    }
  </style>
  <script>
      document.documentElement.offsetTop;
      style.setAttribute('media', 'braille');
      document.documentElement.className = '';
  </script>
  <p>
    PASS if no crash
  </p>
</html>
