<?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>136342</bug_id>
          
          <creation_ts>2014-08-28 08:59:36 -0700</creation_ts>
          <short_desc>Inconsistent width for select with/without multiple attribute in Chrome</short_desc>
          <delta_ts>2014-08-28 13:12:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/ces2L3Ln/3/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>markus-bugswebkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1031994</commentid>
    <comment_count>0</comment_count>
    <who name="">markus-bugswebkit</who>
    <bug_when>2014-08-28 08:59:36 -0700</bug_when>
    <thetext>I&apos;m not totally sure what the correct behaviour should be (and whether I am right here, since this happens only in Chrome but not in Safari), but here is my observation with Chrome 39.0.2138.3 on OSX 10.10 DP6:

When having this html:

&lt;div id=&quot;container&quot;&gt;
    &lt;div class=&quot;select_container&quot;&gt;
        &lt;select multiple&gt;
            &lt;option&gt;Very long option Very long option Very long option Very long option Very long option&lt;/option&gt;
        &lt;/select&gt;
    &lt;/div&gt;
    &lt;div class=&quot;select_container&quot;&gt;
        &lt;select multiple&gt;
            &lt;option&gt;Not so long&lt;/option&gt;
        &lt;/select&gt;
    &lt;/div&gt;
&lt;/div&gt;

with this style:

#container {
    width: 200px;
    display: table;
}
.select_container {
    width: 50%;
    display: table-cell;
}
select {
    width: 100%;
}

I&apos;d expect the `.select_container` and `select` to be 100px wide (50% of the 200px of their parent). But the space they take is dependent on the text in the `option` tag.

When you remove the `multiple`, the `select` and `.select_container` have a width of 100px like expected. See http://jsfiddle.net/ces2L3Ln/3/

In Firefox (33.0a2) the width is always 100px, not dependent on `multiple`.

Safari Version 8.0 (10600.1.8) (Yosemite DP6) renders the width like Firefox (100px), too.

Other browser/versions untested.

I&apos;d expect it to behave like Firefox/Safari do it (`multiple` should not change the width calculation of the `select` tag). Or are they doing it wrong? Is there any hint in the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032055</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-08-28 13:12:06 -0700</bug_when>
    <thetext>Thank you for the report!

I cannot reproduce this issue with a current WebKit nightly build.

Chrome has a forked version of WebKit now, so can we no longer track its bugs in WebKit Bugzilla. Please report the issue directly to Google.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>