[Webkit-unassigned] [Bug 123507] New: `min-width: -webkit-min-content` on fieldset

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 30 05:02:11 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=123507

           Summary: `min-width: -webkit-min-content` on fieldset
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://jsfiddle.net/cornelis/Sxyn2/8/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cornelis at cornae.com


I've been struggling with fieldsets that have (percentual) paddings and width all of a sudden bleeding out their parent tags. A little test that exposes the issue may be found here: 

http://jsfiddle.net/cornelis/Sxyn2/8/

1. Resize the browser window (the width of the viewport) form quite wide to fairly narrow in Chrome 30 or Safari 7.0. 
    -> You will see the fieldset bleeding out of it's parent element. In this case the body element. 
2. Then remove the comments of CSS line 29 and try again. 
    -> It then behaves like trident and gecko or the old webkits. 

It appears to be caused by the agent default style `min-width: -webkit-min-content`. Presumably it entered Webkit with this commit: http://trac.webkit.org/changeset/143479

This addition to the user agent default style sheet makes the behaviour of Webkit suddenly entirely different from Gecko and Trident. Six of my websites broke in Chrome and Safari this year that have looked perfectly well before. It took a while before I found out that the cause was not in my own stylesheet but in the agent's style sheet. Of course once it's known, it's easy to patch it by putting `min-width: 0` in the site's style sheet, but many people wouldn't get that idea and my suspicion is that many people who treat fieldset in a similar way have been struggling with their designs since a few months, not understanding what is going on.

Would it be an idea to take this styling out of the agent style sheet again and handle the default treatment of fieldsets in a different manner?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list