Bug 114566

Summary: REGRESSION (r147261): Flex box regression: min-height defaults to 0 instead of -webkit-min-content
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cbiesinger, me, simon.fraser, tony
Priority: P2 Keywords: InRadar, NeedsReduction, Regression
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.8   
Bug Depends on: 111790    
Bug Blocks:    
Attachments:
Description Flags
Test case none

David Kilzer (:ddkilzer)
Reported 2013-04-13 09:29:37 PDT
Created attachment 197945 [details] Test case * SUMMARY When refreshing a web page that has an overflowing console log, graphical glitches occur in the Web Inspector on nightly.webkit.org builds. * STEPS TO REPRODUCE 1. Load attached test case in WebKit nightly build on Mac. 2. Open the Inspector (Cmd-Opt-I). 3. Click on the console to display it. 4. Reload the web page. * RESULTS Text overlaps in console (see attached screenshot). * REGRESSION This is a regression from commit r147261 which was the fix for Bug 111790. <http://trac.webkit.org/changeset/147261> * NOTES This works as expected in WebKit nightly build r147249. The bug starts occurring in WebKit nightly build r147268.
Attachments
Test case (144 bytes, text/html)
2013-04-13 09:29 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2013-04-13 09:30:58 PDT
Analysis from Tim Hatcher: ''' min-height is defaulting to 0 now and not -webkit-min-content. However, putting min-height: -webkit-min-content on the element does not work. It seems -webkit-min-content only works on min-width? '''
David Kilzer (:ddkilzer)
Comment 2 2013-04-13 09:31:23 PDT
Ojan Vafai
Comment 3 2013-04-13 11:51:56 PDT
Another workaround that should work is setting -webkit-flex-shrink to 0. It's a bummer to change the API this late in the game, but I think the benefits still outweigh the cost.
Ojan Vafai
Comment 4 2013-04-13 11:55:02 PDT
Also, you may want to bring in https://chromium.googlesource.com/chromium/blink/+/5214cf3a1d0d78e880688ccd451e6145b9e69267 to make -webkit-min-content work on heights.
Note You need to log in before you can comment on or make changes to this bug.