Summary: | `min-width: -webkit-min-content` on fieldset | ||
---|---|---|---|
Product: | WebKit | Reporter: | Cornelis <cornelis> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | arthurmkang, dbates, markdotto, selenit, simon.fraser, webkit, zalan, zcorpan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://jsfiddle.net/cornelis/Sxyn2/8/ | ||
Bug Depends on: | |||
Bug Blocks: | 188643 |
Description
Cornelis
2013-10-30 05:00:57 PDT
Confirming that I've run into this at http://jsfiddle.net/tde5p/10/ and https://github.com/twbs/bootstrap/issues/12359. Parallel Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=504622 I believe that `min-width: min-content` emulates the default behavior of fieldset element in most browsers in typical use cases (with no circular dependencies between widths of container and content). It also follows HTML5 specs (https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements and http://www.w3.org/html/wg/drafts/html/master/rendering.html#the-fieldset-and-legend-elements) and gives an easy way to change this behavior if necessary by chanaging the `min-width` property. So having `min-width: min-content` itself by default for fieldset is not a bug. There could be a bug in the implementation of `min-content` algorithm (http://dev.w3.org/csswg/css-box/#min-content) for the case when the width of child element depends on the container width (or the spec changed since the implementation). I didn't test it. I agree that this bug seems invalid given the referenced section of the HTML5 spec. This bug is invalid and can be closed. |