<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>54115</bug_id>
          
          <creation_ts>2011-02-09 10:06:37 -0800</creation_ts>
          <short_desc>[Chromium] Use #f7f7f7 for select popup background on chromium/linux</short_desc>
          <delta_ts>2011-02-09 14:47:04 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="xiyuan">xiyuan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dglazkov</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>348341</commentid>
    <comment_count>0</comment_count>
    <who name="xiyuan">xiyuan</who>
    <bug_when>2011-02-09 10:06:37 -0800</bug_when>
    <thetext>Change the select popup background from #ddd to #f7f7f7. See also http://crosbug.com/9174.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348343</commentid>
    <comment_count>1</comment_count>
      <attachid>81827</attachid>
    <who name="xiyuan">xiyuan</who>
    <bug_when>2011-02-09 10:09:44 -0800</bug_when>
    <thetext>Created attachment 81827
Proposed UA css change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348399</commentid>
    <comment_count>2</comment_count>
      <attachid>81827</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-02-09 11:17:34 -0800</bug_when>
    <thetext>Comment on attachment 81827
Proposed UA css change.

Why do we need size=&quot;0&quot; and size=&quot;1&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348401</commentid>
    <comment_count>3</comment_count>
    <who name="xiyuan">xiyuan</who>
    <bug_when>2011-02-09 11:22:54 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 81827 [details])
&gt; Why do we need size=&quot;0&quot; and size=&quot;1&quot;?

We only want to change the popup&apos;s background but not the listbox. Select size=&quot;0&quot;|&quot;1&quot; is select with popup. Other sizes would show up as listbox.

The reason behind this is in http://crosbug.com/9174 @ comment 8. Web site might expect listbox background color go with the select element, something like in scrollbars/listbox-scrollbar-combinations.html. And I don&apos;t want to force them to do a &quot;select option&quot; rule to override UA css.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348402</commentid>
    <comment_count>4</comment_count>
      <attachid>81827</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-02-09 11:23:59 -0800</bug_when>
    <thetext>Comment on attachment 81827
Proposed UA css change.

I see, I read the bug here: http://code.google.com/p/chromium-os/issues/detail?id=9174

The size=&quot;0&quot; bit seems like a hack.  Where does the color for &lt;option&gt; background currently come from?  Can we fix it there instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348409</commentid>
    <comment_count>5</comment_count>
    <who name="xiyuan">xiyuan</who>
    <bug_when>2011-02-09 11:31:17 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 81827 [details])
&gt; I see, I read the bug here: http://code.google.com/p/chromium-os/issues/detail?id=9174
&gt; 
&gt; The size=&quot;0&quot; bit seems like a hack.  Where does the color for &lt;option&gt; background currently come from?  Can we fix it there instead?

It comes from the CSS like other element and if not specified (99.9% of the case), it will use its parent element&apos;s, which is the select element. 

I have checked with Dimitry and Tab but failed to find a CSS selector that could specifically target the select popup. :(

And if we change the select element, it changes both the select as a button and as a listbox. I am not sure if that is okay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348432</commentid>
    <comment_count>6</comment_count>
      <attachid>81827</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-02-09 12:01:12 -0800</bug_when>
    <thetext>Comment on attachment 81827
Proposed UA css change.

I see.  It looks like html.css also uses select[size=&quot;0&quot;] and select[size=&quot;1&quot;] to force the menulist appearance, so this looks fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348435</commentid>
    <comment_count>7</comment_count>
      <attachid>81827</attachid>
    <who name="xiyuan">xiyuan</who>
    <bug_when>2011-02-09 12:03:13 -0800</bug_when>
    <thetext>Comment on attachment 81827
Proposed UA css change.

Cool. Thanks for the quick review and checking it up. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348568</commentid>
    <comment_count>8</comment_count>
      <attachid>81827</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-09 14:23:58 -0800</bug_when>
    <thetext>Comment on attachment 81827
Proposed UA css change.

Clearing flags on attachment: 81827

Committed r78137: &lt;http://trac.webkit.org/changeset/78137&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348569</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-09 14:24:03 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348598</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-09 14:47:04 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 81827:

http/tests/websocket/tests/handshake-fail-by-cross-origin.html bug 54147 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81827</attachid>
            <date>2011-02-09 10:09:44 -0800</date>
            <delta_ts>2011-02-09 14:23:58 -0800</delta_ts>
            <desc>Proposed UA css change.</desc>
            <filename>webkit_54115.patch</filename>
            <type>text/plain</type>
            <size>1058</size>
            <attacher name="xiyuan">xiyuan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc4MDc4KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDItMDkgIFhpeXVhbiBY
aWEgIDx4aXl1YW5AY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIFtDaHJvbWl1bV0gVXNlICNmN2Y3ZjcgZm9yIHNlbGVjdCBwb3B1
cCBiYWNrZ3JvdW5kIG9uIGNocm9taXVtL2xpbnV4CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD01NDExNQorCisgICAgICAgIE5vIG5ldyB0ZXN0cyBzaW5j
ZSBubyBiZWhhdmlvciBjaGFuZ2UuCisKKyAgICAgICAgKiBjc3MvdGhlbWVDaHJvbWl1bUxpbnV4
LmNzczoKKyAgICAgICAgKHNlbGVjdFtzaXplPSIxIl0gb3B0aW9uKToKKwogMjAxMS0wMi0wOCAg
RGltaXRyaSBHbGF6a292ICA8ZGdsYXprb3ZAY2hyb21pdW0ub3JnPgogCiAgICAgICAgIFJldmll
d2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogU291cmNlL1dlYkNvcmUvY3NzL3RoZW1lQ2hyb21p
dW1MaW51eC5jc3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvY3NzL3RoZW1lQ2hyb21p
dW1MaW51eC5jc3MJKHJldmlzaW9uIDc4MDc0KQorKysgU291cmNlL1dlYkNvcmUvY3NzL3RoZW1l
Q2hyb21pdW1MaW51eC5jc3MJKHdvcmtpbmcgY29weSkKQEAgLTM0LDMgKzM0LDggQEAgc2VsZWN0
IHsKICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZGRkZGRkOwogICAgIGJvcmRlcjogMHB4OwogfQor
CitzZWxlY3Rbc2l6ZT0iMCJdIG9wdGlvbiwKK3NlbGVjdFtzaXplPSIxIl0gb3B0aW9uIHsKKyAg
ICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjdmN2Y3OworfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>