gecko-dev/layout/reftests/forms/select/dynamic-text-overflow-1.html
Boris Zbarsky fccccf142c Bug 1347411 part 5. Change stylo to correctly recompute style on the anonymous boxes that hang off comboboxes. r=heycam
I did manual testing for ::-moz-dropdown-list.  Unfortunately, the only way I
know to test it is to have a combobox in a non-e10s window and dynamically
change its background color, then drop down the dropdown and see whether it
picked up the changed background color.

MozReview-Commit-ID: B2RkW4otv4s
2017-03-15 14:00:43 -04:00

15 lines
418 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<select style="width: 100px; overflow: hidden;">
<option selected>Text that is long enough that it totally overflows<option>
</select>
<script>
onload = function() {
var s = document.querySelector("select");
window.w = s.offsetWidth;
s.style.textOverflow = "ellipsis";
document.documentElement.className = "";
}
</script>
</html>