Skip to content

stretch value for height & width. #1051

@nileshprajapati

Description

@nileshprajapati

Description

The CSS stretch value makes an element’s margin box expand to fill the available space of its containing block along the alignment axis, similar to 100% but applied to the margin box rather than the box defined by box-sizing.

Chromium:: Full Support
WebKit -webkit-fill-available vendor prefixed
Firefox: -moz-available vendor prefixed

.stretch {
  height: stretch;
  width: stretch;
}

Specification

https://www.w3.org/TR/css-sizing-3/

web-feature

stretch

Test Links

No response

Additional Signals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions