testing/web-platform/tests/css/css-values/lh-unit-004.html
author Sotaro Ikeda <sotaro.ikeda.g@gmail.com>
Thu, 10 Jul 2025 00:10:09 +0000 (4 hours ago)
changeset 795941 23763b72c35abeead04f63e4503c28abc73d065d
parent 639105 ac87f0bf136f2c0d7114e3d0f9d7ecd925f4f7ec
permissions -rw-r--r--
Bug 1976135 - Remove nightly only limitation of pref gfx.webrender.layer-compositor r=gfx-reviewers,gw Differential Revision: https://phabricator.services.mozilla.com/D256379
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Values and Units Test: lh not affected by &lt;select&gt; fixup</title>
<link rel="help" href="https://drafts.csswg.org/css-values-4/#font-relative-lengths">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
  select {
    line-height: 100px;
    width: 5lh;
  }
</style>
<select id="lh"></select>
<script>
  test(() => {
    assert_equals(getComputedStyle(lh).width, "500px");
  }, "lh must be relative to computed line-height before select element fixup");
</script>