[Webkit-unassigned] [Bug 182004] New: [css-multicol] Support percentages in column-gap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 23 12:41:13 PST 2018


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

            Bug ID: 182004
           Summary: [css-multicol] Support percentages in column-gap
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rego at igalia.com
                CC: bfulgham at webkit.org, jfernandez at igalia.com,
                    simon.fraser at apple.com, svillar at igalia.com,
                    zalan at apple.com
            Blocks: 180290

Chromium and Edge are the only browser supporting percentages in "column-gap" at this point.
However all browsers support percentage in "grid-column-gap", which will be renamed to "column-gap" (bug #180290).
So it seems it'd be a nice moment to add support in Multicolumn too.

The Multicolumn spec has not any special text regarding this (https://drafts.csswg.org/css-multicol/#column-gap),
however it's worth noticing the text in css-align spec (https://drafts.csswg.org/css-align-3/#column-row-gap):
  "Percentages resolve to zero when specified against a content-based size
   (such as the logical width of a float or the auto logical height of a block-level grid container)."

Note that there's some ongoing discussion with the CSS WG to clarify it:
https://github.com/w3c/csswg-drafts/issues/509#issuecomment-355242101

I believe the text in the spec needs to be changed for "column-gap",
as the width is always definite during layout, so we have to resolve the percentages.
At least I don't see how in Blink/WebKit we could detect the cases that try to cover the new text in the spec,
things like the width of a floated element is only indefinite during intrinsic size computation
(when the percentages are treated as 0)
but during layout we've a definite width to resolve percentages against it.
IMHO this should work like percentages widths work on regular blocks.
And that's what has been implemented in both Chromium and Edge.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=180290
[Bug 180290] [css-grid] Rename gutter properties to remove "grid-" prefix
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180123/d2292ca8/attachment-0001.html>


More information about the webkit-unassigned mailing list