Skip to content

[css-multicol-2] Should column-wrap:wrap alone establish a multicol container? What about column-height? #11975

@mstensho

Description

@mstensho

According to https://drafts.csswg.org/css-multicol-2/#the-multi-column-model , only a non-auto value for column-width or column-count will result in a multicol container, but should the same apply to non-auto column-wrap or column-height?

<!DOCTYPE html>
<style>
  .mc {
    column-fill: auto;
    column-wrap: wrap;
    overflow: scroll;
    height: 100px;
  }
  .mc > div > div {
    break-after: column;
  }
</style>
<div class="mc">
  <div style="background:cyan;">
    <div>First column</div>
    <div>Second column</div>
    <div>Third column</div>
  </div>
</div>

Should this resolve used column-count to 1 (if auto), and create three columns, vertically stacked with one row for each?

@rachelandrew

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Wednesday Afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions