Content-Length: 276413 | pFad | http://github.com/mozilla/gecko-dev/commit/fb331bebd56e34ace553afdfe3ee91c264cc4114

92 Bug 1795284 [wpt PR 36457] - Test that lh units are calculated before… · mozilla/gecko-dev@fb331be · GitHub
Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fb331be

Browse files
lillesmoz-wptsync-bot
authored andcommittedOct 25, 2022
Bug 1795284 [wpt PR 36457] - Test that lh units are calculated before select fixup, a=testonly
Automatic update from web-platform-tests Test that lh units are calculated before select fixup Per resolution in [1], lh units should be computed before any fixups to line-height for form controls. Add a test for <select> elements. [1] w3c/csswg-drafts#3257 (comment) Bug: 937104 Change-Id: Id9987dc1d9a2c7b7a6e006cbfdd431e07379196b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3955838 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1059314} -- wpt-commits: 1f54f756756bdd571f799b12a2a1620da172f85d wpt-pr: 36457
1 parent b00f34d commit fb331be

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Values and Units Test: lh not affected by &lt;select&gt; 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

Comments
 (0)
Failed to load comments.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/mozilla/gecko-dev/commit/fb331bebd56e34ace553afdfe3ee91c264cc4114

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy