diff options
Diffstat (limited to 'testing/web-platform/tests/html/rendering/widgets/select-wrap-no-spill.optional.html')
-rw-r--r-- | testing/web-platform/tests/html/rendering/widgets/select-wrap-no-spill.optional.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/rendering/widgets/select-wrap-no-spill.optional.html b/testing/web-platform/tests/html/rendering/widgets/select-wrap-no-spill.optional.html new file mode 100644 index 0000000000..84aa5602ac --- /dev/null +++ b/testing/web-platform/tests/html/rendering/widgets/select-wrap-no-spill.optional.html @@ -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> |