[Webkit-unassigned] [Bug 107380] Specifying the width/height of an input element modifies its margin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 25 11:10:19 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107380





--- Comment #5 from Dave Hyatt <hyatt at apple.com>  2013-02-25 11:12:43 PST ---
The purpose of intrinsic margins is to try to prevent adjacent controls from butting up against one another. Especially with rounded controls this looks terrible. The reason you see the values change is that we only set intrinsic margins when we think it won't disrupt the layout of the page. If the author specifies an explicit height/width on the control, then we assume the designer is needing pixel-precise control, and so we turn the margins off to avoid disrupting the page layout.

This feature was originally motivated by cases like Google's front page, which had two buttons that butted right up against one another. They have spacing now on the modern version of the page, but in the past they did not. This happens all over the place on the Web as well, especially with text fields next to buttons. They end up looking terrible on OS X especially (they look bad on Windows too, just not quite as bad).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list