Dactyloidae/layout/forms/test
Moonchild b18a680d4f Issue #1970 - Part 7: Restore proper spacing in select for CJK/asian
The issue is that select elements may contain some non-Latin characters that
need extra block-size to display than the one line-height calculated by using a
Latin font spec in the style.
Before this patch, when a control has an unconstrained block-size, we set
the element's block-size to one line-height in Reflow(), which is intended to
properly initialize `BlockReflowInput::mMinLineHeight` since it uses
`line-height:-moz-block-height`.

However, this simply prevents the display from choosing a larger block-size
after the reflow occurs. Previously, this discrepancy was absorbed by the extra
padding present to make select elements the same intrinsic size as buttons, but
since we did away with that, we're losing the extra space and the font glyphs
get clipped.

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

After this patch, a <select><option> containing non-Latin characters should have
the same block-size as <button>, and no characters should be clipped.
2022-08-04 14:25:30 +08:00
..
bug287446_subframe.html
bug477700_subframe.html
bug536567_iframe.html
bug536567_subframe.html
bug564115_window.html
bug665540_window.xul
chrome.ini
mochitest.ini
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
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
test_bug903715.html
test_bug935876.html
test_bug957562.html
test_bug960277.html
test_bug961363.html
test_bug1111995.html
test_bug1301290.html
test_bug1305282.html
test_issue1970_manual.html Issue #1970 - Part 7: Restore proper spacing in select for CJK/asian 2022-08-04 14:25:30 +08:00
test_listcontrol_search.html
test_select_prevent_default.html
test_select_vertical.html
test_textarea_resize.html