[css-multicol] Extend 'column-width' to take multiple <length> values to support varying column sizes?

Open
#4,896 5 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
css
Domain
frontend, web-dev

Research direction

Start with the linked CSS Multi-column specification section for column-width and compare it with the proposed multiple-length syntax in the issue example. Review the existing five-comment discussion for prior consideration and unresolved design questions. Done would require a resolved CSS Working Group direction and corresponding specification work, rather than a localized edit identified by this issue.

Written by the indexing model from the issue text.

Description

css-multicol-2

It seems like it would fairly easy to extend the column-width property to support multiple values, like so: auto | <length [0,∞]>+. Has this been discussed before? Would it be a useful feature?

Example

  .columns {
    column-width: 300px 200px 100px;
    column-rule: 3px solid;
    column-fill: auto;
    height: 200px;
  }

  .columns > * {
    display: block;
    background: lightgrey;
    border: 2px dotted;
  }

would render something like this:

image

Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/csswg-drafts

All issues in w3c/csswg-drafts

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.