Skip to content

[css-sizing-4] Can we Implement Different Values for Horizontal & Vertical Box? #5142

Open
@shyamkushwaha23

Description

@shyamkushwaha23

Can we Implement Different Values for Horizontal & Vertical Box? Today I found a use case where if I could change only vertical box-sizing to content-box, I could solve my issue only via CSS. Though for now I have to use JS.

For different horizontal & vertical values, can we implement 2 values syntax?
E.g.: box-sizing: border-box content-box;
If we have 2 values first will be applied horizontally and second will be applied vertically.

New Working Draft: CSS Box Sizing Level 4.
URL: https://www.w3.org/TR/2020/WD-css-sizing-4-20200526/


box-sizing: border-box | content-box | padding-box?
why not padding-box is implemented?

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