[webkit-dev] Text control rules in themeWin.css

Dan Bernstein mitz at apple.com
Mon Jul 6 09:47:51 PDT 2009

Hi folks,

I was looking at themeWin.css and noticed a few rules relating to text  
controls. Can anyone shed a light on their purpose and why they are in  
themeWin.css rather than in html4.css or in a port-specific theme?

Specifically, these rules:

input[type="password"] {
     padding:1px 0;

input[type="search"]:disabled {
     background-color: #EBEBE4;

input[type="search"]::-webkit-search-cancel-button {
    margin-right: 3px;

input[type="search"]::-webkit-search-results-decoration {
     margin: 0 3px 0 2px;

input[type="search"]::-webkit-search-results-button {
     margin: 0 3px 0 2px;

textarea {
   font-family: monospace;

This comment at the top of the file is most telling:

/* These styles override the default styling for HTML elements as  
defined in
    WebCore/css/html.css. So far we have used this file exclusively for
    making our form elements match Firefox's. */

Have we decided that we want WebKit to match Firefox on Windows?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090706/f0632876/attachment.html>

More information about the webkit-dev mailing list