Skip to content

Commit

Permalink
html: Add a test for crbug.com/924929
Browse files Browse the repository at this point in the history
Bug: 924929
Change-Id: I29afe6b8e36c1101d81a3f2c02171662907f4057
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035482
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738485}
  • Loading branch information
tkent-google authored and chromium-wpt-export-bot committed Feb 5, 2020
1 parent 6f400ed commit 532ecd2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions html/rendering/widgets/select-wrap-no-spill.optional.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<table>
<tr><td id="target">
<select style="width:80px; white-space:pre-wrap;">
<option>ab option with a very long text that does not fit but should not spill</option>
</select>
<tr><td id="reference"><select style="width:80px;">
<option>ab option with a very long text that does not fit but should not spill</option>
</select>
</table>
<script>
// crbug.com/924929
test(() => {
assert_equals(document.querySelector('#target').offsetHeight,
document.querySelector('#reference').offsetHeight);
}, 'Selected OPTION label with white-space:pre-wrap should not spill out.');
</script>
</body>
</html>

0 comments on commit 532ecd2

Please sign in to comment.