- From: Ojan Vafai <ojan@chromium.org>
- Date: Wed, 26 Sep 2012 21:38:07 -0700
- To: Daniel Holbert <dholbert@mozilla.com>
- Cc: www-style list <www-style@w3.org>
- Message-ID: <CANMdWTuadkETEZSWr=+MCf-TjxSDFny9=ONqpoF+TNYA83w6kA@mail.gmail.com>
You're interpretation is correct. We just have a bug. On Wed, Sep 26, 2012 at 9:08 PM, Daniel Holbert <dholbert@mozilla.com>wrote: > Hi www-style, > > Suppose you have this simple flex-item in a horizontal flex container: > <div>abc</div> > with no fancy style rules affecting it. > > So it has "min-width:auto" (the default), and that resolves to the > min-content width -- in this case, the width of the text "abc". > > NOW -- suppose we set "width" on the div, e.g.: > <div style="width:1000px">abc</div> > > MY QUESTION: Does the "width" property there affect the used value of > "min-width: auto" that we pass to the flex algorithm? > > My interpretation: I don't think it should -- to me, the min-content > width is a function of the div's contents, and it necessarily doesn't > depend on the div's "width" property. (Otherwise, it seems that "width: > min-content" would be problematic to define). > > I'm asking because Webkit's current implementation[1] seems to disagree > with me on this (they render the above flex-item as if it had > "min-width: 1000px"), and I want to sanity-check my own understanding. > > (For reference, I filed https://bugs.webkit.org/show_bug.cgi?id=97747 on > this, but that may or may not be a valid bug depending on the outcome of > this thread.) > > Thanks, > ~Daniel > [1] I tested Chrome dev channel, ver. "23.0.1271.6 dev", Linux x86_6 > >
Received on Thursday, 27 September 2012 04:38:59 UTC