Skip to content

[css-inline-3] text-box-trim and multi-column containers #11363

Open

Description

@fantasai

In #5335 we resolved that, when applying to a multi-column container, text-box-trim applies to every column; and in #11038 we clarified that text-box-trim applied to an ancestor also propagates accordingly.

However, we didn't discuss what happens if there's a column spanner. Technically there are column boxes both before and after the spanner, not a single column split by a spanner.

I imagine that if you want to trim in order to position the multi-column container, you probably don't want to affect its internal layout; so I suggest we only target the column boxes in the first/last row of column boxes--or the spanner, if that's the first/last item in a column...

Activity

  1. mstensho commented on Dec 18, 2024

    @mstensho
    Contributor

    Makes sense to me.

    However:

    or the spanner, if that's the first/last item in a column...

    Spanners aren't really part of any columns, so maybe: "or the spanner, if that's the first/last item in a multicol container."

  2. css-meeting-bot commented on Jan 8, 2025

    @css-meeting-bot
    Member

    The CSS Working Group just discussed [css-inline-3] text-box-trim and multi-column containers, and agreed to the following:

    • RESOLVED: Apply text-box-trim to a column box or spanner iff it is adjacent to the relevant edge
    The full IRC log of that discussion <kbabbitt> fantasai: we talked about applying text-box-trim to multicol containers
    <kbabbitt> ... said it applies to every column
    <kbabbitt> ... we didn't discuss what happens if there's a column spanner
    <kbabbitt> ... it can occur before or after the column box
    <kbabbitt> ... also you can have column boxes that span in the middle of the multicol container
    <kbabbitt> ... and only want to trim the columns on the outsides
    <kbabbitt> ... I think we want to clarify
    <kbabbitt> ... suggest that we only target column boxes adjacent to edge of multicol container
    <kbabbitt> ... and that we also trim spanners if present
    <rachelandrew> q+
    <kbabbitt> astearns: we only target things if they are adjacent to the appropriate edge?
    <kbabbitt> fantasai: yes
    <kbabbitt> rachelandrew: sounds good to me
    <kbabbitt> ... that would then work if we do block-direction overflow for columns, same issue but without spanner
    <fantasai> PROPOSAL: Apply text-box-trim to a column box or spanner if it is adjacent to the relevant edge
    <fantasai> s/if/iff/
    <kbabbitt> RESOLVED: Apply text-box-trim to a column box or spanner iff it is adjacent to the relevant edge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions