Bug 45138 - Incorrect intrinsic width with columns
Summary: Incorrect intrinsic width with columns
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2010-09-02 15:37 PDT by Erik Arvidsson
Modified: 2013-05-23 08:42 PDT (History)
4 users (show)

See Also:


Attachments
Test case (5.52 KB, text/html)
2010-09-02 15:37 PDT, Erik Arvidsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 2 Morten Stenshorne 2013-05-23 08:42:35 PDT
Bug 116677 reported, with patch.