lh-unit-004.html (582B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Values and Units Test: lh not affected by <select> fixup</title> 4 <link rel="help" href="https://drafts.csswg.org/css-values-4/#font-relative-lengths"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <style> 8 select { 9 line-height: 100px; 10 width: 5lh; 11 } 12 </style> 13 <select id="lh"></select> 14 <script> 15 test(() => { 16 assert_equals(getComputedStyle(lh).width, "500px"); 17 }, "lh must be relative to computed line-height before select element fixup"); 18 </script>