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

David Hyatt hyatt at apple.com
Mon Jul 6 10:04:53 PDT 2009


Monospace textareas are gross. :)

dave

On Jul 6, 2009, at 11:47 AM, Dan Bernstein wrote:

> 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:not([type]),
> input[type="text"],
> input[type="password"] {
>     padding:1px 0;
> }
>
> textarea:disabled,
> input:not([type]):disabled,
> input[type="text"]:disabled,
> input[type="password"]:disabled,
> 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?
>
> Thanks,
> —Dan
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

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


More information about the webkit-dev mailing list