title: HTML <select> with background-color <option> tags using Chrome
body: <p>I'm trying to make a drop down list that allows a user to select from a list of colors. I want the background of each <code>&lt;option&gt;</code> item to be the color that the user can choose. As proof of concept, I made this little html page:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
      &lt;style media="screen" type="text/css"&gt;
          .white  {background-color:white;}
          .red    {background-color:red;}
          .yellow {background-color:yellow;}
          .green  {background-color:green;}
      &lt;/style&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;h2&gt;Choose Color&lt;/h2&gt;
      &lt;select&gt;
          &lt;option class="white"&gt;This should have a WHITE background&lt;/option&gt;
          &lt;option class="red"&gt;This should have a RED background&lt;/option&gt;
          &lt;option class="yellow"&gt;This should have a YELLOW background&lt;/option&gt;
          &lt;option class="green"&gt;This should have a GREEN background&lt;/option&gt;
      &lt;/select&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I run this on Firefox, either on a PC or a Mac, it looks great. However, testing it on Chrome on a Mac, it doesn't show these background colors. Here is a screen shot of the page after it renders in Chrome and I click on the <code>select</code> object:</p>
  
  <p><a href="https://i.stack.imgur.com/GwPoF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GwPoF.png" alt="enter image description here"></a></p>
  
  <p>You can see that the list is just in the standard format with gray backgrounds. You can also see that the items are connected with the correct class. </p>
  
  <p>I am aware that there are a few <a href="https://stackoverflow.com/questions/16521565/html-select-with-different-background-color-for-every-option-that-works-properly">posts</a> on this issue, which is where I got my initial code from. However, none of the posts that I read on this issue are working for me.</p>
  
  <p>What am I doing wrong? Thank you!</p>