gecko-dev/layout/forms/test
Ting-Yu Lin 8b74ff00e0 Bug 1716212 Part 2 - Carry nsComboboxControlFrame's line-height to nsComboboxDisplayFrame when it has auto block-size. r=emilio
The issue is that combobox display may contain some non-Latin characters
that need extra block-size to display than the one line-height
calculate by using a Latin font spec in combobox control's style.

Before this patch, when a combobox control has unconstrained block-size,
we set combobox display's block-size to combobox control's one
line-height in Reflow(), which is intended to properly initialize
`BlockReflowInput::mMinLineHeight` since combobox display has
`line-height:-moz-block-height`. However, this simply prevents the
combobox display from choosing a larger block-size after the reflow. See
bug 1716212 comment 11 for an analysis.

This patch fixes the issue by carrying combox control's computed line
height to combobox display so that its computed block-size is still
unconstrained so that it can accommodate taller characters in the
display text.

After this patch, <select><option> containing non-Latin characters
should have the same block-size as <button>, and no characters should be
clipped. Modified test_unstyled_control_height.html to test this.

Differential Revision: https://phabricator.services.mozilla.com/D120877
2021-07-28 18:41:19 +00:00
..
.eslintrc.js
bug287446_subframe.html
bug477700_subframe.html
bug536567_iframe.html
bug536567_subframe.html
bug564115_window.html
bug665540_window.xhtml
chrome.ini
mochitest.ini Bug 1664730 - Disable async font fallback when running mochitests, to avoid unpredictable extra reflows that can disrupt event-/timing-sensitive tests. r=botond 2021-03-10 12:26:52 +00:00
test_bug231389.html
test_bug287446.html
test_bug345267.html
test_bug346043.html
test_bug348236.html
test_bug353539.html
test_bug365410.html
test_bug378670.html
test_bug402198.html
test_bug411236.html
test_bug446663.html
test_bug476308.html
test_bug477531.html
test_bug477700.html
test_bug478219.xhtml
test_bug534785.html
test_bug536567_perwindowpb.html
test_bug542914.html
test_bug549170.html Bug 1685962 - Fix test_bug549170.html to work on Linux with the native theme. r=spohl 2021-01-21 00:22:53 +00:00
test_bug562447.html
test_bug563642.html
test_bug564115.html
test_bug571352.html
test_bug572406.html
test_bug572649.html
test_bug595310.html
test_bug620936.html
test_bug644542.html
test_bug665540.html
test_bug672810.html
test_bug704049.html
test_bug717878_input_scroll.html
test_bug869314.html Bug 1694059 - Rename various nnt prefs. r=spohl,mstange 2021-02-22 20:05:35 +00:00
test_bug903715.html
test_bug935876.html Bug 1720405 - part 1: Get rid of the pref check of `dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content` from the tests r=smaug 2021-07-14 10:59:03 +00:00
test_bug957562.html
test_bug960277.html
test_bug1111995.html
test_bug1301290.html
test_bug1305282.html
test_bug1327129.html
test_bug1529036.html
test_listcontrol_search.html
test_readonly.html
test_select_collapsed_page_keys.html
test_select_key_navigation_bug961363.html
test_select_key_navigation_bug1498769.html
test_select_prevent_default.html
test_select_vertical.html
test_textarea_resize.html
test_unstyled_control_height.html Bug 1716212 Part 2 - Carry nsComboboxControlFrame's line-height to nsComboboxDisplayFrame when it has auto block-size. r=emilio 2021-07-28 18:41:19 +00:00