|Summary:||Incorrect intrinsic width with columns|
|Product:||WebKit||Reporter:||Erik Arvidsson <arv>|
|Severity:||Normal||CC:||dglazkov, mstensho, priyajeet.hora, slightlyoff|
|Version:||528+ (Nightly build)|
Description Erik Arvidsson 2010-09-02 15:37:21 PDT
Created attachment 66422 [details] Test case When an element has column-width and it needs to have its width set to the intrinsic width (using absolute pos, floats or width: intrinsic) the width is not correct. In the test case, all the columns should have white background.
Comment 1 Morten Stenshorne 2013-05-23 02:14:42 PDT
While the exact behavior isn't described in any final spec yet, there's common sense and also the following ED to guide us: http://dev.w3.org/csswg/css-sizing/#multicol-intrinsic I think the particular test case in this bug report will be tricky to fix, since it's about finding "the max-content measure of a multi-column element with restrained-height columns". The spec suggests that we need to perform a layout pass to get that measure, and currently WebKit doesn't do that when calculating intrinsic widths. I have some changes in this area (but they currently only cover the cases where column-count is non-auto) that I'd like to submit, but since I probably won't manage to make the test case in this bug pass, I suppose I'd better open a new bug.