We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a367d commit 1f54f75Copy full SHA for 1f54f75
css/css-values/lh-unit-004.html
@@ -0,0 +1,18 @@
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>
0 commit comments