Open Bug 1832409 Opened 2 years ago Updated 2 months ago

[css-ui] Allow <input> / <textarea> to be sized by contents, via `field-sizing: fixed | content`

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: mozilla-apprentice, Assigned: mozilla)

References

(Depends on 1 open bug, Blocks 2 open bugs, )

Details

(Keywords: dev-doc-needed)

A resolution was made for csswg-drafts/#7542.

[css-ui] ? Allow <textarea> to be sized by contents.

  • RESOLVED: Add a new property (provisionally "form-sizing: normal &124; auto") that turns off the "half-replaced" sizing of form controls and makes them content-based like normal elements

Discussion.

(In reply to Mozilla Apprentice from comment #0)

(provisionally "form-sizing: normal &124; auto"

(this was broken via some bot-copypasting-around encoding conversion; it should read:
form-sizing: normal | auto

(We should wait on spec text / finalized naming before diving too far into this. I think IanK is working on a prototype of this in Blink and he said it wasn't too much work, for what it's worth.)

Summary: [css-ui] ? Allow <textarea> to be sized by contents. → [css-ui] ? Allow <textarea> to be sized by contents, via `form-sizing: normal | auto`
Summary: [css-ui] ? Allow <textarea> to be sized by contents, via `form-sizing: normal | auto` → [css-ui] ? Allow <textarea> to be sized by contents, via `field-sizing: fixed | content`

This has changed to be field-sizing with values of fixed and content. See https://drafts.csswg.org/css-ui/#field-sizing

Summary: [css-ui] ? Allow <textarea> to be sized by contents, via `field-sizing: fixed | content` → [css-ui] Allow <input> / <textarea> to be sized by contents, via `field-sizing: fixed | content`
Assignee: nobody → lwarlow
Status: NEW → ASSIGNED
Depends on: 1901374
Depends on: 1901376
Depends on: 1901379
Type: defect → enhancement

Is there any ETA on this feature? It saves a lot of time in my use case and would like to avoid having to do a workaround for firefox.

Assignee: lwarlow → mozilla
You need to log in before you can comment on or make changes to this bug.