<!DOCTYPE HTML>
<title>SVGLength with 'ch' unit</title>
<link rel="help" href="https://www.w3.org/TR/SVG/types.html#InterfaceSVGLength">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#ch_ref, text {
  font-family:initial;
  font-size:20px;
  text-orientation: upright;
}
</style>
<div id="ch_ref" style="width:10ch;"></div>
<svg>
  <text id="ch_test" x="10ch"/>
</svg>
<script>
  let ch_ref = document.getElementById("ch_ref");
  let ref_width 