Skip to content

Commit

Permalink
Bug 1795284 [wpt PR 36457] - Test that lh units are calculated before…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
lilles authored and moz-wptsync-bot committed Oct 25, 2022
1 parent b00f34d commit fb331be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions testing/web-platform/tests/css/css-values/lh-unit-004.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!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>

0 comments on commit fb331be

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy