dth, 0.3);
  }, "Convert back to ch from new user unit value");

  test(() => {
    ch_test.setAttribute("style", "writing-mode: vertical-rl;");
    ch_ref.style.writingMode = "vertical-rl";
    assert_approx_equals(ch_length.value, ch_ref.getBoundingClientRect().width, 0.1);
    ch_test.removeAttribute("style");
    ch_ref.style.writingMode = "";
  }, "upright vertical ch unit in SVGLength");

</script>
