Bug 17034

Summary: Long <option>s should be constrained like on OS X
Product: WebKit Reporter: Matt Lilek <dev+webkit>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: mitz
Priority: P2 Keywords: HasReduction, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: data:text/html,<select style="width: 200px;"><option>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</option></select>

Matt Lilek
Reported 2008-01-27 12:34:08 PST
On Windows, a long <option> will be fully displayed, potentially causing it to go off the edge of the screen (I had this happen in Drosera's symbol popup). On OS X, the width of the menu is restricted which is definitely better than the current behavior. For what it's worth, the behavior of other browsers is as follows: IE 7: Restricts the pop down menu to the width of its parent <select>. Firefox 2 & 3 (Mac & Win): Behave like us and fall off the edge of the screen. Opera (Mac & Win): Restrict the width of the menu and scroll the content like a marquee.
Attachments
Note You need to log in before you can comment on or make changes to this bug.