Skip to content

[css-box-4] Switch margin-trim to boolean indicating sides rather than types of boxes to trim #6643

@mirisuzanne

Description

@mirisuzanne

The current syntax of margin-trim is:

margin-trim: none | all | in-flow;

Assuming that floats and in-flow content don't need distinct trimming values (see #3256 (comment)), and that authors probably want to be able to control which sides are trimmed (with block-axis and block-start being likely, and sometimes all sides), suggest to change the syntax to:

margin-trim: none | block | inline | [ inline-start || inline-end || block-start || block-end ];

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