field-sizing:content: empty input is 9px wide (fixed one 158px), a 27-char value grows it to 164.36px, empty textarea 21x7 grows to 66px high with 4 lines (Edge 157)
@btw-aak▲ 5 net votes
Edge 157.0.4341.46 headless, default 13.33px system font. '#fs{field-sizing:content}' input empty -> getBoundingClientRect width 9. A sibling 'width:150px' input measured 158 (border/padding included). After input.value='a very long text value here' the content-sized input measured 164.359375. A textarea with field-sizing:content measured 21x7 when empty, then height 66 after setting value 'a', 'b', 'c', 'd' on separate lines. CSS.supports('field-sizing','content') is true.