LayoutTests/ChangeLog

 12016-04-05 Myles C. Maxfield <mmaxfield@apple.com>
 2
 3 Test listbox clipping to contents rect
 4 https://bugs.webkit.org/show_bug.cgi?id=156265
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 These tests create some <select><option></option></select>s with padding.
 9 These list boxes use the zapfino "f" character (because it draws wildly
 10 far outside of its layout box) to create a case where text inside the list
 11 box would naturally intersect with the padding. This overflow should be
 12 clipped so that the padding is undisturbed.
 13
 14 * fast/forms/listbox-padding-clip-expected.html: Added.
 15 * fast/forms/listbox-padding-clip-overlay-expected.html: Added.
 16 * fast/forms/listbox-padding-clip-overlay.html: Added.
 17 * fast/forms/listbox-padding-clip.html: Added.
 18
1192016-04-04 Filip Pizlo <fpizlo@apple.com>
220
321 PolymorphicAccess should have a MegamorphicLoad case

LayoutTests/fast/forms/listbox-padding-clip-expected.html

 1<!DOCTYPE html>
 2<html>
 3<head>
 4</head>
 5<body>
 6<p>This test makes sure that the contents of list boxes do not intrude upon their padding. The test passes if you see a tall green box below (and not a single black pixel anywhere inside it)<p>
 7<div style="display: inline-block; width: 100px; height: 400px; background: green;"></div>
 8
 9</body>
 10</html>

LayoutTests/fast/forms/listbox-padding-clip-overlay-expected.html

 1<!DOCTYPE html>
 2<html>
 3<head>
 4</head>
 5<body>
 6<p>This test makes sure that the contents of list boxes do not intrude upon their padding. The test passes if you see a tall green box below (and not a single black pixel anywhere inside it)<p>
 7<div style="display: inline-block; width: 100px; height: 400px; background: green;"></div>
 8
 9</body>
 10</html>

LayoutTests/fast/forms/listbox-padding-clip-overlay.html

 1<!DOCTYPE html>
 2<html>
 3<head>
 4<script>
 5if (window.internals)
 6 internals.setUsesOverlayScrollbars(true);
 7</script>
 8</head>
 9<body>
 10<p>This test makes sure that the contents of list boxes do not intrude upon their padding. The test passes if you see a tall green box below (and not a single black pixel anywhere inside it)<p>
 11<div style="display: inline-block; width: 50px; height: 400px; overflow: hidden;">
 12<select multiple="multiple" style="font: 50px Zapfino; margin: 0px; border: 0px solid black; padding: 0px; padding-left: 50px; background: green;">
 13<option>f</option><option>f</option><option>f</option><option>f</option><option>f</option>
 14</select>
 15</div><div style="display: inline-block; position: relative; width: 50px; height: 400px; overflow: hidden;">
 16<select multiple="multiple" style="font: 50px Zapfino; margin: 0px; border: 0px solid black; padding: 0px; padding-right: 50px; background: green; position: absolute; right: 0px; top: 0px;">
 17<option>f</option><option>f</option><option>f</option><option>f</option><option>f</option>
 18</select>
 19</div>
 20</body>
 21</html>

LayoutTests/fast/forms/listbox-padding-clip.html

 1<!DOCTYPE html>
 2<html>
 3<head>
 4</head>
 5<body>
 6<p>This test makes sure that the contents of list boxes do not intrude upon their padding. The test passes if you see a tall green box below (and not a single black pixel anywhere inside it)<p>
 7<div style="display: inline-block; width: 50px; height: 400px; overflow: hidden;">
 8<select multiple="multiple" style="font: 50px Zapfino; margin: 0px; border: 0px solid black; padding: 0px; padding-left: 50px; background: green;">
 9<option>f</option><option>f</option><option>f</option><option>f</option><option>f</option>
 10</select>
 11</div><div style="display: inline-block; position: relative; width: 50px; height: 400px; overflow: hidden;">
 12<select multiple="multiple" style="font: 50px Zapfino; margin: 0px; border: 0px solid black; padding: 0px; padding-right: 65px; background: green; position: absolute; right: -15px; top: 0px;">
 13<option>f</option><option>f</option><option>f</option><option>f</option><option>f</option>
 14</select>
 15</div>
 16</body>
 17</html>